summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-04-09 15:17:20 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-04-09 15:17:20 -0300
commitb1f934c5d51532c334bd2fbe513c8e9d10cd8208 (patch)
tree94ca9aad126276fd7e12bf7cb416742bb6996805 /Action.c
parent01a29f02674af95e6967cec8c5d1659886931f77 (diff)
Visual tweaks: change color when following, add Broken Gray theme.
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Action.c b/Action.c
index 67231f1f..af6f2be9 100644
--- a/Action.c
+++ b/Action.c
@@ -158,7 +158,7 @@ Htop_Reaction Action_setSortKey(Settings* settings, ProcessField sortKey) {
settings->sortKey = sortKey;
settings->direction = 1;
settings->treeView = false;
- return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_UPDATE_PANELHDR;
+ return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_UPDATE_PANELHDR | HTOP_KEEP_FOLLOWING;
}
static Htop_Reaction sortBy(State* st) {
@@ -324,6 +324,7 @@ static Htop_Reaction actionFilterByUser(State* st) {
static Htop_Reaction actionFollow(State* st) {
st->pl->following = MainPanel_selectedPid((MainPanel*)st->panel);
+ Panel_setSelectionColor(st->panel, CRT_colors[PANEL_SELECTION_FOLLOW]);
return HTOP_KEEP_FOLLOWING;
}

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