From 2be51dc3b11a5d8dadb648efe033074becc8f0a4 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 4 Feb 2022 12:29:57 -0800 Subject: [PATCH] macos: handle sizing changes when switching monitors This should make sure that our scales are updated as well as ensuring we repaint the whole surface. --- gdk/macos/gdkmacossurface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c index 6374f84e00..c5cf05edf8 100644 --- a/gdk/macos/gdkmacossurface.c +++ b/gdk/macos/gdkmacossurface.c @@ -994,6 +994,9 @@ _gdk_macos_surface_monitor_changed (GdkMacosSurface *self) g_object_unref (monitor); } + + _gdk_surface_update_size (GDK_SURFACE (self)); + gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL); } GdkMonitor *