[mutter/wip/multitouchr: 27/73] display: Replace XGrabButton with meta_device_map_grab_button()
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/multitouchr: 27/73] display: Replace XGrabButton with meta_device_map_grab_button()
- Date: Sat, 3 Nov 2012 23:52:28 +0000 (UTC)
commit 373ef2e6f1d594e59d84d650fbb2963d36d4e2ce
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jun 13 23:59:28 2011 +0200
display: Replace XGrabButton with meta_device_map_grab_button()
src/core/display.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 59551b5..b55d9d8 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -4108,16 +4108,16 @@ meta_change_button_grab (MetaDisplay *display,
/* GrabModeSync means freeze until X(I)AllowEvents */
if (grab)
- XGrabButton (display->xdisplay, button, modmask | ignored_mask,
- xwindow, False,
- ButtonPressMask | ButtonReleaseMask |
- PointerMotionMask | PointerMotionHintMask,
- sync ? GrabModeSync : GrabModeAsync,
- GrabModeAsync,
- False, None);
+ meta_device_map_grab_button (display->device_map,
+ xwindow, button,
+ modmask | ignored_mask,
+ ButtonPressMask | ButtonReleaseMask |
+ PointerMotionMask | PointerMotionHintMask,
+ sync);
else
- XUngrabButton (display->xdisplay, button, modmask | ignored_mask,
- xwindow);
+ meta_device_map_ungrab_button (display->device_map,
+ xwindow, button,
+ modmask | ignored_mask);
if (meta_is_debugging ())
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]