summaryrefslogtreecommitdiffstats
path: root/games/KoboDeluxe/ignore-appinputfocus.patch
blob: 90a6a403c8c34f68dc385c3ae985a5ab03239a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: ignore SDL_ACTIVEEVENT with SDL_APPINPUTFOCUS flag
 These events seem to come all the time, causing a pause which can't be
 unpaused
Bug-Debian: https://bugs.debian.org/909244
Author: Reiner Herrmann <reiner@reiner-h.de>

--- a/kobo.cpp
+++ b/kobo.cpp
@@ -1691,7 +1691,7 @@ void kobo_gfxengine_t::frame()
 			break;
 		  case SDL_ACTIVEEVENT:
 			// Any type of focus loss should activate pause mode!
-			if(!ev.active.gain)
+			if(!ev.active.gain && ev.active.state != SDL_APPINPUTFOCUS)
 				km.pause_game();
 			break;
 		  case SDL_QUIT: