mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
keybindings: Freeze and ungrab the keyboard only on X11 backend
This isn't needed in the native backend because we control all the input event flow there. https://bugzilla.gnome.org/show_bug.cgi?id=736433
This commit is contained in:
parent
e3fb9e4cee
commit
6ba0491adf
@ -1629,12 +1629,22 @@ meta_window_ungrab_all_keys (MetaWindow *window, guint32 timestamp)
|
|||||||
void
|
void
|
||||||
meta_display_freeze_keyboard (MetaDisplay *display, Window window, guint32 timestamp)
|
meta_display_freeze_keyboard (MetaDisplay *display, Window window, guint32 timestamp)
|
||||||
{
|
{
|
||||||
|
MetaBackend *backend = meta_get_backend ();
|
||||||
|
|
||||||
|
if (!META_IS_BACKEND_X11 (backend))
|
||||||
|
return;
|
||||||
|
|
||||||
grab_keyboard (window, timestamp, XIGrabModeSync);
|
grab_keyboard (window, timestamp, XIGrabModeSync);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_display_ungrab_keyboard (MetaDisplay *display, guint32 timestamp)
|
meta_display_ungrab_keyboard (MetaDisplay *display, guint32 timestamp)
|
||||||
{
|
{
|
||||||
|
MetaBackend *backend = meta_get_backend ();
|
||||||
|
|
||||||
|
if (!META_IS_BACKEND_X11 (backend))
|
||||||
|
return;
|
||||||
|
|
||||||
ungrab_keyboard (timestamp);
|
ungrab_keyboard (timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user