diff options
author | Daniel Lange <DLange@git.local> | 2020-12-11 18:23:52 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-12-11 18:58:09 +0100 |
commit | cdb702fe5a9835245c5182050b4232ddaeb5ac73 (patch) | |
tree | 8b2ae16b7789d81bd0dee54701c4e910dd7ce821 /debian/patches/0002-Fix-paussing-in-tree-mode.patch | |
parent | 6853bf4de72a92f969d566ab7313ae70827a6af2 (diff) | |
download | debian_htop-cdb702fe5a9835245c5182050b4232ddaeb5ac73.tar.gz debian_htop-cdb702fe5a9835245c5182050b4232ddaeb5ac73.tar.bz2 debian_htop-cdb702fe5a9835245c5182050b4232ddaeb5ac73.zip |
Prepare for 3.0.3-2
Diffstat (limited to 'debian/patches/0002-Fix-paussing-in-tree-mode.patch')
-rw-r--r-- | debian/patches/0002-Fix-paussing-in-tree-mode.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/0002-Fix-paussing-in-tree-mode.patch b/debian/patches/0002-Fix-paussing-in-tree-mode.patch new file mode 100644 index 0000000..b0cb959 --- /dev/null +++ b/debian/patches/0002-Fix-paussing-in-tree-mode.patch @@ -0,0 +1,40 @@ +From 433ae89b72bc17b52dc98eac633cdf9903d1e7c5 Mon Sep 17 00:00:00 2001 +From: Daniel Lange <DLange@git.local> +Date: Fri, 11 Dec 2020 18:16:12 +0100 +Subject: [PATCH 2/2] Fix paussing in tree mode + +Upstream commits 7b739b6 and db5687a +--- + Action.c | 2 ++ + ScreenManager.c | 2 +- + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/Action.c b/Action.c +index 66934be..eccd985 100644 +--- a/Action.c ++++ b/Action.c +@@ -273,6 +273,8 @@ static Htop_Reaction actionLowerPriority(State* st) { + + static Htop_Reaction actionInvertSortOrder(State* st) { + Settings_invertSortOrder(st->settings); ++ if (st->pauseProcessUpdate) ++ ProcessList_sort(st->pl); + return HTOP_REFRESH | HTOP_SAVE_SETTINGS; + } + +diff --git a/ScreenManager.c b/ScreenManager.c +index ac93721..94904b5 100644 +--- a/ScreenManager.c ++++ b/ScreenManager.c +@@ -106,7 +106,7 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi + if (*rescan) { + *oldTime = newTime; + ProcessList_scan(pl, this->state->pauseProcessUpdate); +- if (*sortTimeout == 0 || this->settings->treeView) { ++ if (!this->state->pauseProcessUpdate && (*sortTimeout == 0 || this->settings->treeView)) { + ProcessList_sort(pl); + *sortTimeout = 1; + } +-- +2.25.1 + |