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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user