> after the call to XMapWindow() your client and the WM work in parallel, so
> it's a race to who is faster - your client in selecting the event mask or
> the window manager in mapping the window.
> The correct way to avoid that problem is to simply move the event mask
> selection up that at the time of mapping, the events are already selected.
>
> 1. create window
> 2. select for core events
> 3. select for XI2 events.
> 4. map window
> ==== server generates events here
Hello Peter,
many thanks for the explanation. I didn't realize that the WM is
involved, too - but thinking about it a bit more, it makes sense.
Fixing this in the FreeGLUT patch was almost trivial, so for all
interested parties, here's the most current version where XI_Enter
now works as expected:
http://tisch.sourceforge.net/freeglut-2.6.0-mpx-r3.patchThanks again,
Yours, Florian
--
0666 - Filemode of the Beast
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer