From 105f9abbfae7993a0c05ff7e0a676127d181bab2 Mon Sep 17 00:00:00 2001 From: LD Date: Sun, 6 Mar 2022 20:27:56 +0100 Subject: [PATCH] cocoadisplay: Trigger handle_move_event() when a resize event is received to also update the origin of the window if needed --- panda/src/cocoadisplay/cocoaPandaWindowDelegate.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/cocoadisplay/cocoaPandaWindowDelegate.mm b/panda/src/cocoadisplay/cocoaPandaWindowDelegate.mm index 7e39748bd1..17fae241f3 100644 --- a/panda/src/cocoadisplay/cocoaPandaWindowDelegate.mm +++ b/panda/src/cocoadisplay/cocoaPandaWindowDelegate.mm @@ -30,6 +30,7 @@ - (void) windowDidResize:(NSNotification *)notification { // Forcing a move event is unfortunately necessary because Cocoa does not // call windowDidMove in case of window zooms. + _graphicsWindow->handle_move_event(); _graphicsWindow->handle_resize_event(); }