summaryrefslogtreecommitdiff
path: root/gdk/gdksurface.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/gdksurface.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/gdksurface.h')
-rw-r--r--gdk/gdksurface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 938c59ba17..99f920c5f4 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -426,7 +426,8 @@ GdkSurface * gdk_surface_new_temp (GdkDisplay *display,
const GdkRectangle *position);
GDK_AVAILABLE_IN_ALL
GdkSurface * gdk_surface_new_popup (GdkDisplay *display,
- GdkSurface *parent);
+ GdkSurface *parent,
+ gboolean autohide);
GDK_AVAILABLE_IN_ALL
void gdk_surface_destroy (GdkSurface *surface);
@@ -443,6 +444,7 @@ GDK_AVAILABLE_IN_ALL
void gdk_surface_hide (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
void gdk_surface_show_unraised (GdkSurface *surface);
+
GDK_AVAILABLE_IN_ALL
void gdk_surface_move (GdkSurface *surface,
gint x,