projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b85d50
)
macos: handle sizing changes when switching monitors
author
Christian Hergert
<christian@hergert.me>
Fri, 4 Feb 2022 20:29:57 +0000
(12:29 -0800)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/gdk/macos/gdkmacossurface.c
b/gdk/macos/gdkmacossurface.c
index 6374f84e006e6472d10cd6026b1831044d86e358..c5cf05edf80d72dba19144e6b3c2d0ab267948a5 100644
(file)
--- 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 *