diff options
Diffstat (limited to 'games/KoboDeluxe/ignore-appinputfocus.patch')
-rw-r--r-- | games/KoboDeluxe/ignore-appinputfocus.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games/KoboDeluxe/ignore-appinputfocus.patch b/games/KoboDeluxe/ignore-appinputfocus.patch new file mode 100644 index 0000000000..90a6a403c8 --- /dev/null +++ b/games/KoboDeluxe/ignore-appinputfocus.patch @@ -0,0 +1,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: |