diff options
Diffstat (limited to 'debian/patches/0010-fix-sort-timeout.patch')
-rw-r--r-- | debian/patches/0010-fix-sort-timeout.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0010-fix-sort-timeout.patch b/debian/patches/0010-fix-sort-timeout.patch new file mode 100644 index 0000000..0822589 --- /dev/null +++ b/debian/patches/0010-fix-sort-timeout.patch @@ -0,0 +1,25 @@ +From 12f5f06e8855b653c98b75de55a45098bb468d57 Mon Sep 17 00:00:00 2001 +From: Daniel Lange <DLange@git.local> +Date: Mon, 1 Feb 2021 16:02:31 +0100 +Subject: [PATCH] Check for sortTimeout to not run towards -inf + +Seems to happen on Mac OS "Big Sur" (~forced application sleep) +Partial fix for #510 +--- + ScreenManager.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/ScreenManager.c b/ScreenManager.c +index 64af535b..df5fed4f 100644 +--- a/ScreenManager.c ++++ b/ScreenManager.c +@@ -202,7 +202,8 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) { + } + } + if (ch == ERR) { +- sortTimeout--; ++ if (sortTimeout > 0) ++ sortTimeout--; + if (prevCh == ch && !timedOut) { + closeTimeout++; + if (closeTimeout == 100) { |