From e66a89eda9dd75fc36d63bc34c2e8067276cb3e7 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 25 Dec 2008 20:40:24 +0000 Subject: [PATCH] Avoid redraw artifacts from the border after resizing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/win_gtk.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 62bf3e424b..9e5a1e6ffd 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -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 -- 2.45.2