diff options
author | Daniel Lange <DLange@git.local> | 2021-02-01 16:02:31 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-02-01 16:02:31 +0100 |
commit | 12f5f06e8855b653c98b75de55a45098bb468d57 (patch) | |
tree | c8a6426051faf400a9a1ff1ee3079702c92597e5 | |
parent | 3808b3b5539386c97ed3acd0322496cedf577797 (diff) |
Check for sortTimeout to not run towards -inf
Seems to happen on Mac OS "Big Sur" (~forced application sleep)
Partial fix for #510
-rw-r--r-- | ScreenManager.c | 3 |
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) { |