mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] shutdown application on window close even if ignoreQuit is set
Fixes #138
This commit is contained in:
parent
9378f69653
commit
1492196bbf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user