runrev/livecode — pull request #1220 by trevordevore (2014-09-26 15:29:54+00:00)
Title: MCRedrawUnlockScreen() is now called prior to triggering the menu associ...

...ated with an accelerator key. If the menu item triggered by the accelerator updates the window using an external the window will now update appropriately.

I have an external that calls NSWindow toggleFullScreen. When using accelerator keys to trigger the menu option that calls toggleFullScreen, the window would go full screen but LiveCode would not send the resizeStack message. In my code if I call unlock screen prior to call toggleFullScreen then everything works as it should.

By moving MCRedrawUnlockScreen() before the acceleratorKey trigger, everything works as it should. I don't think this affects the speed improvement that MCRedrawLockScreen brings to the table as the screen is still locked during the mousedown event.