mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 15:25:54 -04:00
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:
parent
88ba7badd4
commit
105f9abbfa
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user