Skip to content

Commit

Permalink
macos: fix resize when using server-side decorations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chergert committed Mar 11, 2022
1 parent 9fa5378 commit cf8d237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdk/macos/GdkMacosWindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf8d237

Please sign in to comment.