mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:31:46 +00:00
[client] shutdown application on window close even if ignoreQuit is set
Fixes #138
This commit is contained in:
parent
9378f69653
commit
1492196bbf
2 changed files with 6 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
a12-221-gd2d427b533+1
|
a12-222-g9378f69653+1
|
|
@ -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 a new issue