From e08c4756ebccbbbe1dc55dae3b6d51b767e4badf Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 14 Jun 2011 00:00:09 +0200 Subject: [PATCH] keybindings: Replace XGrabKey() with meta_device_map_grab_key() --- src/core/keybindings.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index c9639377f..c789d3213 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -737,16 +737,16 @@ meta_change_keygrab (MetaDisplay *display, if (meta_is_debugging ()) meta_error_trap_push_with_return (display); + if (grab) - XGrabKey (display->xdisplay, keycode, - modmask | ignored_mask, - xwindow, - True, - GrabModeAsync, GrabModeSync); + meta_device_map_grab_key (display->device_map, + xwindow, keycode, + modmask | ignored_mask, + TRUE); else - XUngrabKey (display->xdisplay, keycode, - modmask | ignored_mask, - xwindow); + meta_device_map_ungrab_key (display->device_map, + xwindow, keycode, + modmask | ignored_mask); if (meta_is_debugging ()) {