[gtk+/client-side-decorations: 3/92] Also resize GTK_WIDGET (window)->window on size_allocate.



commit 123cf65d4f6aeac403786875969679f41400260e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat May 16 17:23:27 2009 +0200

    Also resize GTK_WIDGET (window)->window on size_allocate.

 gtk/gtkwindow.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e075542..12ef9e9 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5131,9 +5131,12 @@ gtk_window_size_allocate (GtkWidget     *widget,
 
   if (GTK_WIDGET_REALIZED (widget) && window->frame)
     {
-      gdk_window_resize (window->frame,
-			 allocation->width + window->frame_left + window->frame_right,
-			 allocation->height + window->frame_top + window->frame_bottom);
+      if (window->frame)
+        gdk_window_resize (window->frame,
+                           allocation->width + window->frame_left + window->frame_right,
+                           allocation->height + window->frame_top + window->frame_bottom);
+
+      gdk_window_resize (widget->window, allocation->width, allocation->height);
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]