From 4405461c762bbccbf61df94da88e2e4531e15812 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 6 Jul 2013 23:07:17 -0400 Subject: Fix size allocation with custom titlebars Even without full csd, we need to take a custom titlebar into account when translating between content and frame size. --- gtk/gtkwindow.c | 9 --------- 1 file changed, 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); -- cgit v1.2.1