From: Christian Hergert Date: Fri, 11 Mar 2022 02:58:10 +0000 (-0800) Subject: macos: fix resize when using server-side decorations X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~318^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cf8d2374c56a1099761a8c8eafd249444d12e7c0;p=gtk4.git 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. --- 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