FLTK logo

[fltk.general] Re: Focus boxes are broken on my machine

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Focus boxes are broken on my machine Greg Ercolano Sep 10, 2021  
 
On 9/10/21 8:57 AM, paveloom wrote:
> So, somehow the focus boxes are not displaying correctly on my machine.
> Any ideas what's the problem here can be?

    To answer that specific question (what's the problem), I believe
    it's the X11 default "modesetting" driver.

    Try running 'lsmod' and see if you see 'modesetting' in the report;
    if so, that's likely the cause. Or grep your Xorg.0.log for "modesetting".

    Pretty sure the presence and active use of that driver is the cause.

    If you install the actual manufacturer graphics drivers, that 'modesetting'
    default driver should go away, and with it, the problem should go too.

    For a workaround in FLTK, see the other replies in this thread which
    would set the linewidth to 1 when drawing the focus box.

    The github issue Albrecht mentioned refers back to an older, long thread
    that goes into the details of using linewidth = 1 and speed issues it can cause
    if used across the board, which is why we continue to use linewidth=0 as the default:
    https://groups.google.com/g/fltkcoredev/c/K8Pc0O-dCs0/m/CZ5rMRhmCQAJ

    But I'd agree we could/should modify just the focus box drawing code
    to set the linewidth to 1, just for portability, as I think Manolo had recommended
    in the github thread. I wouldn't expect any significant slowdown from just focus box drawing.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/3eea9e6d-1c0d-4a13-af64-a8e2974e6248n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.