diff options
Diffstat (limited to 'src/wayland/meta-wayland-keyboard.c')
-rw-r--r-- | src/wayland/meta-wayland-keyboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c index 5cdd3f4a5..8c12ef145 100644 --- a/src/wayland/meta-wayland-keyboard.c +++ b/src/wayland/meta-wayland-keyboard.c @@ -926,3 +926,9 @@ meta_wayland_keyboard_class_init (MetaWaylandKeyboardClass *klass) object_class->finalize = meta_wayland_keyboard_finalize; } + +gboolean +meta_wayland_keyboard_is_grabbed (MetaWaylandKeyboard *keyboard) +{ + return keyboard->grab != &keyboard->default_grab; +} |