mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
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:
parent
86c294b952
commit
a23ea01c8f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user