summaryrefslogtreecommitdiff
path: root/gdk/gdksurfaceprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-22 21:31:33 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-28 20:25:14 +0000
commitb15ba64ec9b495a51307773bd71f72d6e80b2700 (patch)
treefd2b93b7829a502748d32b9058de36c5a1ba5347 /gdk/gdksurfaceprivate.h
parent2dd15346a7eb7eb5d8ab276c64ceedbaa6d62eda (diff)
downloadgtk+-b15ba64ec9b495a51307773bd71f72d6e80b2700.tar.gz
surface: Add an autohide property
This api is meant to mimic xdg-popover.grab - we show the surface, and dismiss it when we get events on other surfaces. For foreign surfaces, the compositor handles that for us; for our own, we check outselves before delivering events to GTK.
Diffstat (limited to 'gdk/gdksurfaceprivate.h')
-rw-r--r--gdk/gdksurfaceprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h
index 25319c6b38..c7933fe0f2 100644
--- a/gdk/gdksurfaceprivate.h
+++ b/gdk/gdksurfaceprivate.h
@@ -69,6 +69,7 @@ struct _GdkSurface
guint viewable : 1; /* mapped and all parents mapped */
guint in_update : 1;
guint frame_clock_events_paused : 1;
+ guint autohide : 1;
guint update_and_descendants_freeze_count;