macos: fix resize when using server-side decorations
authorChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 02:58:10 +0000 (18:58 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:25:10 +0000 (12:25 -0700)
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.

gdk/macos/GdkMacosWindow.c

index 048c00c4078a588516bb1facee565d77bdb3a6e2..7aee71f630c405b7a0e84742e06fb9ff1768f0d4 100644 (file)
@@ -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