Bug 1205 - Xevie client receives two KeyPress events on consumed keys when XKB is enabled
Summary: Xevie client receives two KeyPress events on consumed keys when XKB is enabled
Status: RESOLVED DUPLICATE of bug 2800
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: All Solaris
: high major
Assignee: Stuart Kreitman
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 09:00 UTC by Stuart Kreitman
Modified: 2005-05-20 19:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stuart Kreitman 2004-08-27 09:00:13 UTC
This problem is not reproducible if XKB is disabled. The cause of the problem is
that Xserver treats the key event consumed by Xevie client as a repeat key and
send an addtional KeyPress event to Xevie client
derek dot wang at sun.com 2004-08-26


Xext/xevie.c:
*** 464,469 ****
--- 464,476 ----
          xE->u.keyButtonPointer.state = keyc->state;
          /* fix bug: sequence lost in Xlib */
          xE->u.u.sequenceNumber = clients[xevieClientIndex]->sequence;
+       /* fix for bug5092586 */
+       if(!noXkbExtension) {
+           switch(xE->u.u.type) {
+           case KeyPress: *kptr |= bit; break;
+           case KeyRelease: *kptr &= ~bit; break;
+         }
+       }
          sendEvent(clients[xevieClientIndex], xE);
          return;
      }
Comment 1 Alan Coopersmith 2005-05-21 12:23:32 UTC
Fix is included in patch for bug 2800, so marking as a duplicate of that one.

*** This bug has been marked as a duplicate of 2800 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.