macos: handle sizing changes when switching monitors
authorChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 20:29:57 +0000 (12:29 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 20:29:57 +0000 (12:29 -0800)
This should make sure that our scales are updated as well as
ensuring we repaint the whole surface.

gdk/macos/gdkmacossurface.c

index 6374f84e006e6472d10cd6026b1831044d86e358..c5cf05edf80d72dba19144e6b3c2d0ab267948a5 100644 (file)
@@ -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 *