[gtk+/client-side-decorations: 24/92] Invalidate window on size_allocate so we redraw correctly



commit 906020a22202ab81f63a80bd8f41fafb8c80dc06
Author: Kristian Høgsberg <krh redhat com>
Date:   Fri May 22 11:08:37 2009 -0400

    Invalidate window on size_allocate so we redraw correctly

 gtk/gtkwindow.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f8c4aa5..0b40904 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5171,6 +5171,7 @@ gtk_window_size_allocate (GtkWidget     *widget,
   GtkRequisition deco_requisition;
   GtkAllocation deco_allocation;
   gint frame_left = 0, frame_right = 0, frame_top = 0, frame_bottom = 0;
+  GdkRectangle rect;
 
   window = GTK_WINDOW (widget);
   container = GTK_CONTAINER (widget);
@@ -5227,6 +5228,15 @@ gtk_window_size_allocate (GtkWidget     *widget,
 
       gtk_widget_size_allocate (window->bin.child, &child_allocation);
     }
+
+  if  (widget->window != NULL)
+    {
+      rect.x = 0;
+      rect.y = 0;
+      rect.width = allocation->width;
+      rect.height = allocation->height;
+      gdk_window_invalidate_rect(widget->window, &rect, NULL);
+    }
 }
 
 static gboolean



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