From: Robert Roebling Date: Thu, 25 Dec 2008 20:40:24 +0000 (+0000) Subject: Avoid redraw artifacts from the border after resizing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e66a89eda9dd75fc36d63bc34c2e8067276cb3e7?ds=inline 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 --- 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