Fix hang on quit. Closes #91
This commit is contained in:
parent
ce752713f6
commit
b9232b796c
|
@ -951,8 +951,6 @@ static void oc_process_mouse_button(NSEvent* nsEvent, oc_window_data* window, oc
|
||||||
}
|
}
|
||||||
else if([nsEvent charactersIgnoringModifiers] == [NSString stringWithUTF8String:"q"])
|
else if([nsEvent charactersIgnoringModifiers] == [NSString stringWithUTF8String:"q"])
|
||||||
{
|
{
|
||||||
oc_appData.shouldQuit = true;
|
|
||||||
|
|
||||||
oc_event event = {};
|
oc_event event = {};
|
||||||
event.type = OC_EVENT_QUIT;
|
event.type = OC_EVENT_QUIT;
|
||||||
|
|
||||||
|
@ -1147,11 +1145,6 @@ bool oc_should_quit()
|
||||||
return (oc_appData.shouldQuit);
|
return (oc_appData.shouldQuit);
|
||||||
}
|
}
|
||||||
|
|
||||||
void oc_do_quit()
|
|
||||||
{
|
|
||||||
oc_appData.shouldQuit = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void oc_cancel_quit()
|
void oc_cancel_quit()
|
||||||
{
|
{
|
||||||
oc_appData.shouldQuit = false;
|
oc_appData.shouldQuit = false;
|
||||||
|
|
|
@ -579,6 +579,7 @@ i32 orca_runloop(void* user)
|
||||||
switch(event->type)
|
switch(event->type)
|
||||||
{
|
{
|
||||||
case OC_EVENT_WINDOW_CLOSE:
|
case OC_EVENT_WINDOW_CLOSE:
|
||||||
|
case OC_EVENT_QUIT:
|
||||||
{
|
{
|
||||||
app->quit = true;
|
app->quit = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue