From 6378527458d36bdff2d7098fd031d9af66ac892f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 13 Jun 2011 23:59:28 +0200 Subject: [PATCH] display: Replace XGrabButton with meta_device_map_grab_button() --- src/core/display.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 81349292b..94bbc90d4 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -3899,16 +3899,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 ()) {