From: Christian Hergert Date: Fri, 4 Feb 2022 20:29:57 +0000 (-0800) Subject: macos: handle sizing changes when switching monitors X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~4^2~22^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2be51dc3b11a5d8dadb648efe033074becc8f0a4;p=gtk4.git 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. --- 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 *