cocoadisplay: Trigger handle_move_event() when a resize event is received to also update the origin of the window if needed

This commit is contained in:
LD 2022-03-06 20:27:56 +01:00 committed by rdb
parent 88ba7badd4
commit 105f9abbfa

View File

@ -30,6 +30,7 @@
- (void) windowDidResize:(NSNotification *)notification { - (void) windowDidResize:(NSNotification *)notification {
// Forcing a move event is unfortunately necessary because Cocoa does not // Forcing a move event is unfortunately necessary because Cocoa does not
// call windowDidMove in case of window zooms. // call windowDidMove in case of window zooms.
_graphicsWindow->handle_move_event();
_graphicsWindow->handle_resize_event(); _graphicsWindow->handle_resize_event();
} }