projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only pause game on focus lose when game session is active
[supertux.git]
/
src
/
supertux
/
screen_manager.cpp
diff --git
a/src/supertux/screen_manager.cpp
b/src/supertux/screen_manager.cpp
index
decc603
..
e1c3376
100644
(file)
--- a/
src/supertux/screen_manager.cpp
+++ b/
src/supertux/screen_manager.cpp
@@
-216,7
+216,9
@@
ScreenManager::process_events()
break;
case SDL_WINDOWEVENT_FOCUS_LOST:
- if(GameSession::current() != NULL) {
+ if(GameSession::current() != NULL &&
+ GameSession::current()->is_active())
+ {
GameSession::current()->toggle_pause();
}
break;