mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
display: Replace XGrabButton with meta_device_map_grab_button()
This commit is contained in:
parent
f0705e142c
commit
6378527458
@ -3899,16 +3899,16 @@ meta_change_button_grab (MetaDisplay *display,
|
|||||||
/* GrabModeSync means freeze until X(I)AllowEvents */
|
/* GrabModeSync means freeze until X(I)AllowEvents */
|
||||||
|
|
||||||
if (grab)
|
if (grab)
|
||||||
XGrabButton (display->xdisplay, button, modmask | ignored_mask,
|
meta_device_map_grab_button (display->device_map,
|
||||||
xwindow, False,
|
xwindow, button,
|
||||||
|
modmask | ignored_mask,
|
||||||
ButtonPressMask | ButtonReleaseMask |
|
ButtonPressMask | ButtonReleaseMask |
|
||||||
PointerMotionMask | PointerMotionHintMask,
|
PointerMotionMask | PointerMotionHintMask,
|
||||||
sync ? GrabModeSync : GrabModeAsync,
|
sync);
|
||||||
GrabModeAsync,
|
|
||||||
False, None);
|
|
||||||
else
|
else
|
||||||
XUngrabButton (display->xdisplay, button, modmask | ignored_mask,
|
meta_device_map_ungrab_button (display->device_map,
|
||||||
xwindow);
|
xwindow, button,
|
||||||
|
modmask | ignored_mask);
|
||||||
|
|
||||||
if (meta_is_debugging ())
|
if (meta_is_debugging ())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user