[gtk+/wip/frame-window: 6/6] Fix size allocation with custom titlebars
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/frame-window: 6/6] Fix size allocation with custom titlebars
- Date: Sun, 7 Jul 2013 03:14:29 +0000 (UTC)
commit 4405461c762bbccbf61df94da88e2e4531e15812
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jul 6 23:07:17 2013 -0400
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 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fecd6ae..a3d56c6 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]