mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27: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();
|
updatePositionInfo();
|
||||||
realignGuest = true;
|
realignGuest = true;
|
||||||
break;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user