Browse Source

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

LD 3 years ago
parent
commit
105f9abbfa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/cocoadisplay/cocoaPandaWindowDelegate.mm

+ 1 - 0
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();
 }