summaryrefslogtreecommitdiffstats
path: root/ScreenManager.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-02-01 16:02:31 +0100
committerDaniel Lange <DLange@git.local>2021-02-01 16:02:31 +0100
commit12f5f06e8855b653c98b75de55a45098bb468d57 (patch)
treec8a6426051faf400a9a1ff1ee3079702c92597e5 /ScreenManager.c
parent3808b3b5539386c97ed3acd0322496cedf577797 (diff)
Check for sortTimeout to not run towards -inf
Seems to happen on Mac OS "Big Sur" (~forced application sleep) Partial fix for #510
Diffstat (limited to 'ScreenManager.c')
-rw-r--r--ScreenManager.c3
1 files changed, 2 insertions, 1 deletions
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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy