aboutsummaryrefslogtreecommitdiffstats
path: root/Action.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-01-11 20:43:27 +0100
committerDaniel Lange <DLange@git.local>2021-01-11 20:43:27 +0100
commitc55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (patch)
treed6be9a09fdf7d6dc155de3429a70697ee2bb43b0 /Action.h
parent65357c8c46154de4e4eca14075bfe5523bb5fc14 (diff)
downloaddebian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.tar.gz
debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.tar.bz2
debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.zip
New upstream version 3.0.5upstream/3.0.5
Diffstat (limited to 'Action.h')
-rw-r--r--Action.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Action.h b/Action.h
index 1251911..02d9030 100644
--- a/Action.h
+++ b/Action.h
@@ -41,6 +41,10 @@ typedef struct State_ {
bool hideProcessSelection;
} State;
+static inline bool State_hideFunctionBar(const State* st) {
+ return st->settings->hideFunctionBar == 2 || (st->settings->hideFunctionBar == 1 && st->hideProcessSelection);
+}
+
typedef Htop_Reaction (*Htop_Action)(State* st);
Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess);

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