diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2020-03-20 15:17:41 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2020-03-30 18:25:36 +0200 |
commit | 3e1f59af61e339cfa990c2f776aa0c625b3377f2 (patch) | |
tree | 73d0c4c0eeaf98b6b2735af52038b065f3905371 /gdk/gdksurfaceprivate.h | |
parent | da47ccaf3c3d4353f6fa4ac813aeb689a1d2d20a (diff) | |
download | gtk+-3e1f59af61e339cfa990c2f776aa0c625b3377f2.tar.gz |
gdk: Add gdk_toplevel_inhibit_system_shortcuts API
With the removal of grabs from the public API, we need a replacement API
to let applications bypass system keyboard shortcuts.
A typical use case for this API is remote desktop or virtual machine
viewers which need to inhibit the default system keyboard shortcuts so
that the remote session or virtual host gets those instead of the local
environment.
Close: https://gitlab.gnome.org/GNOME/gtk/issues/982
Diffstat (limited to 'gdk/gdksurfaceprivate.h')
-rw-r--r-- | gdk/gdksurfaceprivate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h index 0c94b5a80f..cbc6e53094 100644 --- a/gdk/gdksurfaceprivate.h +++ b/gdk/gdksurfaceprivate.h @@ -102,6 +102,9 @@ struct _GdkSurface GdkDrawContext *paint_context; cairo_region_t *opaque_region; + + guint shortcuts_inhibited : 1; + GdkSeat *current_shortcuts_inhibited_seat; }; struct _GdkSurfaceClass |