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.
This commit is contained in:
Christian Hergert
2022-02-04 12:29:57 -08:00
parent 6b85d501f0
commit 2be51dc3b1

View 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 *