mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 18:40:40 -05:00
keybindings: Replace XGrabKey() with meta_device_map_grab_key()
This commit is contained in:
parent
6378527458
commit
e08c4756eb
@ -737,16 +737,16 @@ meta_change_keygrab (MetaDisplay *display,
|
|||||||
|
|
||||||
if (meta_is_debugging ())
|
if (meta_is_debugging ())
|
||||||
meta_error_trap_push_with_return (display);
|
meta_error_trap_push_with_return (display);
|
||||||
|
|
||||||
if (grab)
|
if (grab)
|
||||||
XGrabKey (display->xdisplay, keycode,
|
meta_device_map_grab_key (display->device_map,
|
||||||
modmask | ignored_mask,
|
xwindow, keycode,
|
||||||
xwindow,
|
modmask | ignored_mask,
|
||||||
True,
|
TRUE);
|
||||||
GrabModeAsync, GrabModeSync);
|
|
||||||
else
|
else
|
||||||
XUngrabKey (display->xdisplay, keycode,
|
meta_device_map_ungrab_key (display->device_map,
|
||||||
modmask | ignored_mask,
|
xwindow, keycode,
|
||||||
xwindow);
|
modmask | ignored_mask);
|
||||||
|
|
||||||
if (meta_is_debugging ())
|
if (meta_is_debugging ())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user