summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-07-06 23:07:17 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-07-06 23:12:12 -0400
commit4405461c762bbccbf61df94da88e2e4531e15812 (patch)
tree38695e24ed97426fbab7acca9a19b8de5bd8b407
parent60cfe0114d9cd5093a7799c8a1f672cef84b523c (diff)
downloadgtk+-wip/frame-window.tar.gz
Fix size allocation with custom titlebarswip/frame-window
Even without full csd, we need to take a custom titlebar into account when translating between content and frame size.
-rw-r--r--gtk/gtkwindow.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fecd6aef84..a3d56c6830 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8226,9 +8226,6 @@ add_frame_size_to_geometry (GtkWindow *window,
GtkBorder border;
gint title_height = 0;
- if (!priv->client_decorated)
- return;
-
get_decoration_size (window, &border);
if (priv->title_box &&
gtk_widget_get_visible (priv->title_box))
@@ -8248,9 +8245,6 @@ add_frame_size_to_allocation (GtkWindow *window,
GtkBorder border;
GtkWindowGeometryInfo *info;
- if (!priv->client_decorated)
- return;
-
info = gtk_window_get_geometry_info (window, TRUE);
get_decoration_size (window, &border);
@@ -8273,9 +8267,6 @@ subtract_frame_size_from_allocation (GtkWindow *window,
GtkBorder border;
GtkWindowGeometryInfo *info;
- if (!priv->client_decorated)
- return;
-
info = gtk_window_get_geometry_info (window, TRUE);
get_decoration_size (window, &border);