widget: Fix UPDATES debug rendering

Choose the right widget to add the debug updates to (the one with the
window) and the correct region (the one in that window's coordinates).
This commit is contained in:
Timm Bäder 2017-08-23 13:58:21 +02:00
parent 86c294b952
commit a23ea01c8f

View File

@ -5295,7 +5295,7 @@ gtk_widget_queue_draw_region (GtkWidget *widget,
cairo_region_translate (region2, x, y);
invalidate:
gtk_debug_updates_add (widget, region);
gtk_debug_updates_add (parent, region2);
gdk_window_invalidate_region (_gtk_widget_get_window (widget), region2, TRUE);
cairo_region_destroy (region2);