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:
Jasper St. Pierre 2014-04-30 09:30:35 -04:00
parent 2101c8357b
commit 03efa3ccbc

View File

@ -1767,9 +1767,16 @@ meta_display_process_key_event (MetaDisplay *display,
return TRUE;
}
XIAllowEvents (display->xdisplay,
{
MetaBackend *backend = meta_get_backend ();
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;
if (all_keys_grabbed)