[gnome-settings-daemon/wip/input-sources: 2/6] keyboard: Fix XkbSelectEventDetails event_type argument



commit f61a7d843fdb3dff75387dcf0b21a57bcfeded48
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Apr 16 17:28:23 2012 +0200

    keyboard: Fix XkbSelectEventDetails event_type argument
    
    This just happened to work by chance since both XkbStateNotify and
    XkbStateNotifyMask are the same integral value.

 plugins/keyboard/gsd-keyboard-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index 4e4b5d6..778067e 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -498,7 +498,7 @@ numlock_xkb_init (GsdKeyboardManager *manager)
         dpy = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
         XkbSelectEventDetails (dpy,
                                XkbUseCoreKbd,
-                               XkbStateNotifyMask,
+                               XkbStateNotify,
                                XkbModifierLockMask,
                                XkbModifierLockMask);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]