mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
macos: fix window drag across mixed-scale monitors
If we have a 2x scale laptop with a 1x scale external display, we would need to create a new IOSurface for the external display once it crosses a boundary, otherwise we won't have something capable of displaying correctly on the second monitor.
This commit is contained in:
parent
8b71cff71d
commit
493f90499b
@ -1017,6 +1017,9 @@ _gdk_macos_surface_monitor_changed (GdkMacosSurface *self)
|
||||
g_object_unref (monitor);
|
||||
}
|
||||
|
||||
/* We need to create a new IOSurface for this monitor */
|
||||
g_clear_object (&self->buffer);
|
||||
|
||||
_gdk_macos_surface_configure (self);
|
||||
|
||||
gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user