Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-12 Thread Melchior FRANZ
Attached is my suggested fix for the keyboard bug. The behavior should be the same as before, except when losing the focus (FocusOut, LeaveNotify) all keys are released (normal keys first, modifiers at last), and on re-entering (KeymapNotify) pressed (modifiers first, other keys afterwards). I'll

[osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread Melchior FRANZ
There's a problem with the keyboard support on X11. It's really caused by the way X works, and SDL or glut are said to struggle with it as well. I haven't seen the problem there, though, so they probably found a way to work around it. To reproduce start the osgkeyboard example, press a few

Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread Jean-Sébastien Guay
Hello Franz, To reproduce start the osgkeyboard example, press a few modifier keys (let's say Ctrl and Shift) and while keeping them pressed switch the desktop (e.g. on KDE) or minimize the window. Release the modifier keys. Now, when you switch back or open the minimized window, you'll see

Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread Melchior FRANZ
* Jean-Sébastien Guay -- Tuesday 05 February 2008: For reference, the same thing happens on Windows, Oh, didn't know that. Not sure if OSG should try to work around it or not... Well, but it's annoying as hell, and my computer is not supposed to annoy me. :-) And again: I never saw that

Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread Bradford, Chase
@lists.openscenegraph.org Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) * Jean-Sébastien Guay -- Tuesday 05 February 2008: For reference, the same thing happens on Windows, Oh, didn't know that. Not sure if OSG should try to work around it or not... Well, but it's

Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread Melchior FRANZ
* Bradford, Chase -- Tuesday 05 February 2008: On the Windows side, we could explicitly poll a modifier key's state before sending an event off to the EventQueue, without relying on KEYUP/KEYDOWN synchronization. However, doing something like that would cause inconsistencies between the

Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread Ulrich Hertlein
Quoting Melchior FRANZ [EMAIL PROTECTED]: X11 does, of course, tell you which modifiers are active. But only which modifier level (shift), not which modifier key (shift_l, shift_r), so you'd still release keys that were never pressed before. (I'm not sure if that's really a problem, but it

Re: [osg-users] X11 keyboard bug (+ ugly fix)

2008-02-05 Thread André Garneau
for good... André -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Melchior FRANZ Sent: February-05-08 5:15 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) * Bradford, Chase -- Tuesday 05 February 2008