[Bug 1162] Keys get stuck when they're pressed when XDGASetMode is called

bugzilla-daemon@freedesktop.org bugzilla-daemon@freedesktop.org
Thu Jan 13 06:26:55 PST 2005


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://bugs.freedesktop.org/show_bug.cgi?id=1162        
   




------- Additional Comments From j.w.r.degoede@hhs.nl  2005-01-13 06:26 -------
About the workaround, I've already added a workaround to xmame, the trick is not
to fake a key release after leaving DGA, but to wait for all keys to be released
before entering DGA, this can be done with the following code:

        int i;

        /* HACK HACK HACK, keys get stuck when they are pressed when
           XDGASetMode is called, so wait for all keys to be released */
        do {
          char keys[32];
          XQueryKeymap(display, keys);
          for (i=0; (i<32) && (keys[i]==0); i++) {}
        } while(i<32);
        
   
   
--         
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list