[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kicker/buttons
From:       Melchior Franz <mfranz () kde ! org>
Date:       2003-05-14 8:13:32
[Download RAW message or body]

CVS commit by mfranz: 

Make sure that Super keys don't have the repeatability flag set.
This may be the case on keyboards that use non-standard key codes for
them. (reviewed and OK'ed by Ellis)


  M +8 -0      kbutton.cpp   1.13


--- kdebase/kicker/buttons/kbutton.cpp  #1.12:1.13
@@ -57,4 +57,12 @@ KButton::KButton( QWidget* parent )
     g_keycodeForSuperL = XKeysymToKeycode( qt_xdisplay(), XK_Super_L );
     g_keycodeForSuperR = XKeysymToKeycode( qt_xdisplay(), XK_Super_R );
+
+    XKeyboardControl kbd;
+    kbd.auto_repeat_mode = AutoRepeatModeOff;
+    kbd.key = g_keycodeForSuperL;
+    XChangeKeyboardControl( qt_xdisplay(), KBKey | KBAutoRepeatMode, &kbd );
+    kbd.key = g_keycodeForSuperR;
+    XChangeKeyboardControl( qt_xdisplay(), KBKey | KBAutoRepeatMode, &kbd );
+
     if( g_keycodeForSuperL || g_keycodeForSuperR ) {
         //kdDebug() << "g_keycodeForSuperL = " << g_keycodeForSuperL


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic