gdk/quartz: add some additional GDK_NOTE debugging

This commit is contained in:
Paul Davis 2024-03-22 13:11:02 -06:00
parent bd4d6b4cba
commit 7324070628
1 changed files with 6 additions and 0 deletions

View File

@ -612,6 +612,8 @@
private = GDK_WINDOW_OBJECT (gdk_window);
impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
GDK_NOTE (EVENTS, g_print ("setNeedsDisplay, current NDR %p\n", impl->needs_display_region));
if (!impl->needs_display_region)
impl->needs_display_region = gdk_region_rectangle (&r);
else
@ -648,6 +650,8 @@
private = GDK_WINDOW_OBJECT (gdk_window);
impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
GDK_NOTE (EVENTS, g_print ("setNeedsDisplayInRect, current NDR %p\n", impl->needs_display_region));
if (!impl->needs_display_region)
impl->needs_display_region = gdk_region_rectangle (&r);
else
@ -766,6 +770,8 @@
GdkWindowImplQuartz *impl;
GdkRectangle r;
GDK_NOTE (EVENTS, g_print ("reshape\n"));
[super reshape];
NSRect bounds = [self bounds];