aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/0010-fix-sort-timeout.patch
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-02-05 08:49:58 +0100
committerDaniel Lange <DLange@git.local>2021-02-05 08:54:08 +0100
commita26143e3a68bc137d0d8c922a0b7fa16461c1755 (patch)
treea8e9b00fecd390e836444358aa1a72bf07942eda /debian/patches/0010-fix-sort-timeout.patch
parentc41f79d4da85e7156d0fb1e6fc979ffc038328f3 (diff)
downloaddebian_htop-a26143e3a68bc137d0d8c922a0b7fa16461c1755.tar.gz
debian_htop-a26143e3a68bc137d0d8c922a0b7fa16461c1755.tar.bz2
debian_htop-a26143e3a68bc137d0d8c922a0b7fa16461c1755.zip
Add patches for sort timeout and initial CPU meter setup, release 3.0.5-4debian/3.0.5-4
Diffstat (limited to 'debian/patches/0010-fix-sort-timeout.patch')
-rw-r--r--debian/patches/0010-fix-sort-timeout.patch25
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) {

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