FLTK logo

Re: [fltk.general] 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 Albrecht Schlosser Sep 10, 2021  
 
On 9/10/21 7:04 PM Albrecht Schlosser wrote:
On 9/10/21 6:35 PM imm wrote:
On Fri, 10 Sep 2021, 16:57 paveloom wrote:
Hello there!

I'm an fltk-rs user, but the problem I've encountered is appearing in other FLTK applications as well. Consider the following comparison of focus boxes on my machine (left) and on a virtual machine (right). Both are the same systems, Fedora 34.

There's a rendering bug in some X11 drivers that can look like that, so I'd guess that's what you are hitting.

Yes, see issue #156: https://github.com/fltk/fltk/issues/156

FTR: The patch in https://github.com/fltk/fltk/files/5745668/focus_rect_xlib.diff.txt should fix the issue. However, this is not a 100% correct fix because the line width gets unconditionally (re)set to 0 after drawing the focus box.

@OP (paveloom): can you please test and report if the fix above works for you?

Other than that, Greg's advice to install another driver is worth a try as well if it is feasible for you...

--
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/d1a0e6b8-e37a-1cf8-19c1-aeff97ffe075%40online.de.
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'.