keybindings: Make sure to unfreeze the keyboard on the right xdisplay
This fixes keybindings getting "stuck" after being activated in X11 compositor mode.
This commit is contained in:
parent
2101c8357b
commit
03efa3ccbc
@ -1767,9 +1767,16 @@ meta_display_process_key_event (MetaDisplay *display,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
XIAllowEvents (display->xdisplay,
|
{
|
||||||
clutter_input_device_get_device_id (event->device),
|
MetaBackend *backend = meta_get_backend ();
|
||||||
XIAsyncDevice, event->time);
|
if (META_IS_BACKEND_X11 (backend))
|
||||||
|
{
|
||||||
|
Display *xdisplay = meta_backend_x11_get_xdisplay (META_BACKEND_X11 (backend));
|
||||||
|
XIAllowEvents (xdisplay,
|
||||||
|
clutter_input_device_get_device_id (event->device),
|
||||||
|
XIAsyncDevice, event->time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
keep_grab = TRUE;
|
keep_grab = TRUE;
|
||||||
if (all_keys_grabbed)
|
if (all_keys_grabbed)
|
||||||
|
Loading…
Reference in New Issue
Block a user