]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid redraw artifacts from the border after resizing
authorRobert Roebling <robert@roebling.de>
Thu, 25 Dec 2008 20:40:24 +0000 (20:40 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 25 Dec 2008 20:40:24 +0000 (20:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index 62bf3e424b517837bcd4bfa2ba2d9f581d7be766..9e5a1e6ffdb183b66a9d37d5105ec1d1f97d651e 100644 (file)
@@ -73,6 +73,14 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc)
             // one window
             gdk_window_move_resize(widget->window,
                 alloc->x + border_x, alloc->y + border_y, w, h);
+                
+            if ((border_x > 0) || (border_y > 0))
+            {
+                // Otherwise we get can redraw artefacts from
+                // the border.
+                GtkWidget *parent = gtk_widget_get_parent( widget );
+                gtk_widget_queue_draw( parent );
+            }
         }
     }
     // adjust child positions