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



commit 95ddb8bf86329024c351884bdfdce3754702d443
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 4fa38d2..909ded4 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -499,7 +499,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]