From 8746fd22523ceea7c6407d340a7b3f04249c0ee0 Mon Sep 17 00:00:00 2001 From: Ed Swartz Date: Mon, 15 Jun 2015 09:57:24 -0500 Subject: [PATCH] Explicitly resizing window does not trigger event on OS X; do it ourselves --- panda/src/cocoadisplay/cocoaGraphicsWindow.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/cocoadisplay/cocoaGraphicsWindow.mm b/panda/src/cocoadisplay/cocoaGraphicsWindow.mm index efe9849ff5..e92dabdac2 100644 --- a/panda/src/cocoadisplay/cocoaGraphicsWindow.mm +++ b/panda/src/cocoadisplay/cocoaGraphicsWindow.mm @@ -807,6 +807,11 @@ set_properties_now(WindowProperties &properties) { cocoadisplay_cat.debug() << "Setting size to " << width << ", " << height << "\n"; + // Cocoa doesn't send an event, and the other + // resize-window handlers will do nothing once the properties + // have been changed, so do this now + set_size_and_recalc(width, height); + _context_needs_update = true; properties.clear_size();