summaryrefslogtreecommitdiff
path: root/gtk/gtkwindowprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-06 17:59:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-09 14:01:42 -0400
commitbde4e863579f05368661347bfaf55e0480e4555c (patch)
treedc2834766661960cfef132db18fa7c20deeb3b59 /gtk/gtkwindowprivate.h
parent60cd7076cf885cbc421babfba44c9081ded3ad78 (diff)
downloadgtk+-bde4e863579f05368661347bfaf55e0480e4555c.tar.gz
Allow csd for override-redirect windows
This commit makes it possible to use client-side decorations for override-redirect windows by calling _gtk_window_request_csd() before realizing the window. Since the wm won't do interactive resizing for us in this case anyway, don't bother creating the border windows we use for this purpose on regular toplevels. To make this accessible to themes, we set a "csd" style class on client-side decorated windows. With this, .window-frame.csd.menu can be used to define the shadow for csd menus, and .menu can be used to define a border for menus under non-composited wms. https://bugzilla.gnome.org/show_bug.cgi?id=731187
Diffstat (limited to 'gtk/gtkwindowprivate.h')
-rw-r--r--gtk/gtkwindowprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h
index eb827f5cbc..3d7b08685d 100644
--- a/gtk/gtkwindowprivate.h
+++ b/gtk/gtkwindowprivate.h
@@ -93,6 +93,8 @@ void _gtk_window_get_shadow_width (GtkWindow *window,
void _gtk_window_toggle_maximized (GtkWindow *window);
+void _gtk_window_request_csd (GtkWindow *window);
+
/* Window groups */
GtkWindowGroup *_gtk_window_get_window_group (GtkWindow *window);