[gtk/wip/chergert/for-main: 10/10] macos: always invalidate after monitor change




commit 322903794e4a45a4a2e09f6195b236220f58f573
Author: Christian Hergert <christian hergert me>
Date:   Mon Feb 28 22:56:16 2022 -0800

    macos: always invalidate after monitor change
    
    We always need to update buffers, so ensure we invalidate everything to
    be certain we render new contents to the changed back-buffer.

 gdk/macos/gdkmacossurface.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 1daf571f65..6f216b0266 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -1148,7 +1148,6 @@ _gdk_macos_surface_monitor_changed (GdkMacosSurface *self)
                            gdk_monitor_get_connector (best)));
 
       _gdk_macos_surface_configure (self);
-      gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
 
       if (GDK_SURFACE_IS_MAPPED (GDK_SURFACE (self)))
         {
@@ -1174,6 +1173,8 @@ _gdk_macos_surface_monitor_changed (GdkMacosSurface *self)
         }
     }
 
+  gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
+
   self->in_change_monitor = FALSE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]