summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2022-03-10 18:58:10 -0800
committerChristian Hergert <chergert@redhat.com>2022-03-16 12:25:10 -0700
commit023bf9aea71f1f9a0d06d9eeb274a100cf36f405 (patch)
tree5a272a343139baba75eff94da7a2bdb9367c6b96
parent4bc593c761224c533a924468f59819b863c103ae (diff)
downloadgtk+-023bf9aea71f1f9a0d06d9eeb274a100cf36f405.tar.gz
macos: fix resize when using server-side decorations
If we are using NSWindow titled windows, we don't end up waking up the frame clock when the window is resized on the display server. This ensures that we do that after getting a notification of resize.
-rw-r--r--gdk/macos/GdkMacosWindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c
index 048c00c407..7aee71f630 100644
--- a/gdk/macos/GdkMacosWindow.c
+++ b/gdk/macos/GdkMacosWindow.c
@@ -377,9 +377,10 @@ typedef NSString *CALayerContentsGravity;
_gdk_macos_surface_configure ([self gdkSurface]);
}
-- (void)windowDidResize:(NSNotification *)notification
+-(void)windowDidResize:(NSNotification *)notification
{
_gdk_macos_surface_configure ([self gdkSurface]);
+ gdk_surface_request_layout (GDK_SURFACE (gdk_surface));
}
/* Used by gdkmacosdisplay-translate.c to decide if our sendEvent() handler