Yuri D'Elia wrote:

> Can someone confirm  http://www.fltk.org/str.php?L1747 ?

I can't confirm it exactly as Stan describes it.  For me, Fl::grab() is 
broken *regardless* of which of his typedefs I use.

Fl::grab(..) is supposed to hijack all X events and send them to the 
anointed window.  In this case, Stan's "second window" should receive 
all events.  My F8 box has kernel 2.6.23, gcc 4.1.2, latest Xorg (what 
ever that is; I can't figure out what/how to invoke something to tell 
me).  There, the second window doesn't get any events unless the cursor 
is inside one of the application windows when the mouse is pressed.

Of course, this is standard X server behavior; Fl::grab() seems to have 
no effect at all.  Event grabbing has always been troublesome.  It 
allows a misbehaving application to hang the server.  Xorg may have 
decided this was not a feature but a bug and decided to correct it.

Early on, I tried to use Fl::grab(..) for some reason or another.  Under 
XFree86, it worked as documented at the time, but I eventually abandoned 
it because the behavior was quite bizarre on Windows.

Jim Wilson
Gainesville, FL
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to