mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Fix crash closing the window when it's on fullscreen mode on OS X
This commit is contained in:
parent
8c781ecd57
commit
05249dc191
@ -198,11 +198,15 @@ void osx_event_handler()
|
||||
int event_type;
|
||||
BOOL gotmouseevent = NO;
|
||||
|
||||
while ((event = [NSApp nextEventMatchingMask: NSAnyEventMask
|
||||
untilDate: [NSDate distantPast]
|
||||
inMode: NSDefaultRunLoopMode
|
||||
dequeue: YES]))
|
||||
while (osx_window != nil)
|
||||
{
|
||||
event = [NSApp nextEventMatchingMask: NSAnyEventMask
|
||||
untilDate: [NSDate distantPast]
|
||||
inMode: NSDefaultRunLoopMode
|
||||
dequeue: YES];
|
||||
if (!event)
|
||||
return;
|
||||
|
||||
BOOL send_event = YES;
|
||||
|
||||
_unix_lock_mutex(osx_skip_events_processing_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user