[mutter/wip/xinput2: 28/49] keybindings: Replace XGrabKey() with meta_device_map_grab_key()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/xinput2: 28/49] keybindings: Replace XGrabKey() with meta_device_map_grab_key()
- Date: Fri, 15 Jul 2011 16:31:26 +0000 (UTC)
commit e08c4756ebccbbbe1dc55dae3b6d51b767e4badf
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jun 14 00:00:09 2011 +0200
keybindings: Replace XGrabKey() with meta_device_map_grab_key()
src/core/keybindings.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index c963937..c789d32 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 ())
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]