hi melchior,

i believe UmapNotify is not the right place to do this (or at least not the 
only place that you should consider). the bug also appears when changing 
focus with alt+tab (in kde).

ulrich hertlein said something about "KeymapNotify which is generated after 
every EnterNotify and FocusIn". something like this might be a better place?

regards,

-till

On Wednesday 06 February 2008, Melchior FRANZ wrote:
> Thanks to all who replied. I've now written a cleaner fix.
> The focus on modifiers was silly. After we lose all releases
> on a "window hide" event, not only modifier releases, we also
> have to fake-release all of them. What made the most sense
> to me was to maintain a keyStateMap which keeps track of
> the pressed/released state. On "UnmapNotify" all pressed
> keys are released. (I didn't mess with the current-event-state's
> modifier mask, as this is updated with the next event, anyway.)
>
> Patch attached. (I'll submit that if there are no serious
> objections.)
>
> m.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to