summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/ecore_x.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_x/ecore_x.c')
-rw-r--r--src/lib/ecore_x/ecore_x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_x/ecore_x.c b/src/lib/ecore_x/ecore_x.c
index 74e50efd01..573322a57f 100644
--- a/src/lib/ecore_x/ecore_x.c
+++ b/src/lib/ecore_x/ecore_x.c
@@ -2540,8 +2540,10 @@ ecore_x_xkb_track_state(void)
2540{ 2540{
2541 Eina_Bool ret = EINA_FALSE; 2541 Eina_Bool ret = EINA_FALSE;
2542#ifdef ECORE_XKB 2542#ifdef ECORE_XKB
2543 unsigned mask = XkbNewKeyboardNotifyMask | XkbMapNotifyMask |
2544 XkbStateNotifyMask | XkbCompatMapNotifyMask;
2543 EINA_SAFETY_ON_NULL_RETURN_VAL(_ecore_x_disp, EINA_FALSE); 2545 EINA_SAFETY_ON_NULL_RETURN_VAL(_ecore_x_disp, EINA_FALSE);
2544 ret = XkbSelectEvents(_ecore_x_disp, XkbUseCoreKbd, XkbStateNotifyMask, XkbStateNotifyMask); 2546 ret = XkbSelectEvents(_ecore_x_disp, XkbUseCoreKbd, mask, mask);
2545 if (_ecore_xlib_sync) ecore_x_sync(); 2547 if (_ecore_xlib_sync) ecore_x_sync();
2546#endif 2548#endif
2547 return ret; 2549 return ret;