[PATCH] xkb: Don't press+release keys on key events.

Matthias Hopf mhopf at suse.de
Wed May 20 03:41:05 PDT 2009


Fixes submission of F7 to apps on switch from console for drivers that switch
fast enough (Novell bug #141443 from Januar 2006).
---
 xkb/xkbPrKeyEv.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/xkb/xkbPrKeyEv.c b/xkb/xkbPrKeyEv.c
index effb0ea..a44fcbc 100644
--- a/xkb/xkbPrKeyEv.c
+++ b/xkb/xkbPrKeyEv.c
@@ -85,11 +85,6 @@ unsigned        ndx;
 		}
 		else if (event->type == ET_KeyRelease &&
 			(!(keyc->down[key>>3]&(1<<(key&7))))) {
-		    XkbLastRepeatEvent=	(pointer)event;
-		    event->type = ET_KeyPress;
-		    XkbHandleActions(keybd, keybd, event);
-		    event->type = ET_KeyRelease;
-		    XkbHandleActions(keybd, keybd, event);
 		    XkbLastRepeatEvent= NULL;
 		    return;
 		}
-- 
1.6.0.2


--ftEhullJWpWg/VHq--


More information about the xorg-devel mailing list