diff options
author | Damien Plisson <damien.plisson@yahoo.fr> | 2009-12-02 13:10:20 +0300 |
---|---|---|
committer | Damien Plisson <damien.plisson@yahoo.fr> | 2009-12-02 13:10:20 +0300 |
commit | 0efaf10b7a6834159de370b1b0af1542e2f438e9 (patch) | |
tree | cbb87aaa764dfd1dbcbf4699521ca78d0df94508 /intern | |
parent | b89138564eee9b576263518df0ed5dc045668f75 (diff) |
Cocoa: fix delaying issue for events that were fired outside the processEvents function
An example of a visible issue was a delayed wm resize when switching to/from fullscreen mode
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCocoa.mm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index 573b815a4ae..0aa9f8d4ac2 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -746,8 +746,6 @@ bool GHOST_SystemCocoa::processEvents(bool waitForEvent) bool anyProcessed = false; NSEvent *event; - m_outsideLoopEventProcessed = false; - // SetMouseCoalescingEnabled(false, NULL); //TODO : implement timer ?? @@ -844,9 +842,12 @@ bool GHOST_SystemCocoa::processEvents(bool waitForEvent) } while (event!= nil); //} while (waitForEvent && !anyProcessed); Needed only for timer implementation + if (m_outsideLoopEventProcessed) { + m_outsideLoopEventProcessed = false; + return true; + } - - return anyProcessed || m_outsideLoopEventProcessed; + return anyProcessed; } //Note: called from NSApplication delegate |