[client] shutdown application on window close even if ignoreQuit is set

Fixes #138
This commit is contained in:
Geoffrey McRae 2019-05-23 18:27:21 +10:00
parent 9378f69653
commit 1492196bbf
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
a12-221-gd2d427b533+1
a12-222-g9378f69653+1

View File

@ -595,6 +595,11 @@ int eventFilter(void * userdata, SDL_Event * event)
updatePositionInfo();
realignGuest = true;
break;
// allow a window close event to close the application even if ignoreQuit is set
case SDL_WINDOWEVENT_CLOSE:
state.running = false;
break;
}
return 0;
}