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
This commit is contained in:
Robert Roebling 2008-12-25 20:40:24 +00:00
parent 5b90e570c9
commit e66a89eda9

View 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