aboutsummaryrefslogtreecommitdiff
path: root/games/KoboDeluxe/ignore-appinputfocus.patch
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-08-04 18:22:25 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-08-12 08:29:51 +0700
commite85714a423d80ebeef4bcce3700c5482f16a6ede (patch)
tree8536c8f3eb6d99a9f1495a96f31e8af8452e937d /games/KoboDeluxe/ignore-appinputfocus.patch
parent74044db7b90566735f916356f198a27e1700fc76 (diff)
games/KoboDeluxe: New maintainer, various fixes.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/KoboDeluxe/ignore-appinputfocus.patch')
-rw-r--r--games/KoboDeluxe/ignore-appinputfocus.patch17
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 0000000000000..90a6a403c8c34
--- /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: