[gtk/wip/chergert/macos-fixes] macos: handle sizing changes when switching monitors
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-fixes] macos: handle sizing changes when switching monitors
- Date: Sat, 5 Feb 2022 01:23:39 +0000 (UTC)
commit 2be51dc3b11a5d8dadb648efe033074becc8f0a4
Author: Christian Hergert <christian hergert me>
Date: Fri Feb 4 12:29:57 2022 -0800
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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]