summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkwindow-x11.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-28 23:30:29 +0100
committerMatthias Clasen <mclasen@redhat.com>2018-01-28 23:30:29 +0100
commitb54e24ea292a3c8385474126015b8129eb763195 (patch)
tree7009a176e21087a695d546d234069d4bfb1a7ec0 /gdk/x11/gdkwindow-x11.h
parent794d9d266e35b1eee87221b6687a39aa490c50db (diff)
downloadgtk+-b54e24ea292a3c8385474126015b8129eb763195.tar.gz
wip: subsurface window typewip/matthiasc/subsurface
Make subsurfaces for X11 as follows: - toplevel - override-redirect - moves with the parent Attempt to use subsurfaces for popovers again This does not quite work yet
Diffstat (limited to 'gdk/x11/gdkwindow-x11.h')
-rw-r--r--gdk/x11/gdkwindow-x11.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdk/x11/gdkwindow-x11.h b/gdk/x11/gdkwindow-x11.h
index 2199692327..8e438b25fe 100644
--- a/gdk/x11/gdkwindow-x11.h
+++ b/gdk/x11/gdkwindow-x11.h
@@ -89,6 +89,14 @@ struct _GdkWindowImplX11
#if defined (HAVE_XCOMPOSITE) && defined(HAVE_XDAMAGE) && defined (HAVE_XFIXES)
Damage damage;
#endif
+
+ /* Subsurfaces are positioned relative to their transient parent.
+ * We keep the offset here.
+ */
+ int offset_x;
+ int offset_y;
+
+ GList *transients;
};
struct _GdkWindowImplX11Class
@@ -191,9 +199,11 @@ GdkToplevelX11 *_gdk_x11_window_get_toplevel (GdkWindow *window);
GdkCursor *_gdk_x11_window_get_cursor (GdkWindow *window);
void _gdk_x11_window_update_size (GdkWindowImplX11 *impl);
+void gdk_x11_window_update_position (GdkWindowImplX11 *impl);
void _gdk_x11_window_set_window_scale (GdkWindow *window,
int scale);
+
G_END_DECLS
#endif /* __GDK_WINDOW_X11_H__ */