[mutter/wip/multitouch: 28/73] 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/multitouch: 28/73] keybindings: Replace XGrabKey() with meta_device_map_grab_key()
- Date: Mon, 31 Oct 2011 00:19:02 +0000 (UTC)
commit 1e8f10826a39ff25255997ea78f137ffae04e857
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 e0776a7..19ba80b 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]