display: Replace XGrabButton with meta_device_map_grab_button()

This commit is contained in:
Carlos Garnacho 2011-06-13 23:59:28 +02:00
parent f0705e142c
commit 6378527458

View File

@ -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,
meta_device_map_grab_button (display->device_map,
xwindow, button,
modmask | ignored_mask,
ButtonPressMask | ButtonReleaseMask |
PointerMotionMask | PointerMotionHintMask,
sync ? GrabModeSync : GrabModeAsync,
GrabModeAsync,
False, None);
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 ())
{