summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-08-21 20:48:45 +0200
committerBenBE <BenBE@geshi.org>2021-08-22 10:40:59 +0200
commit68f2bfea619a454b5de1431689eb086cf13f5ceb (patch)
tree9c75b625e2aac6035aad2cdc9a51be863d26c59e /Action.c
parentb9e69223d02287f75c24c3f5be869a04979e5b17 (diff)
Abstract resize handling by adding a new Htop reaction
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Action.c b/Action.c
index c7f4118b..802d2fc5 100644
--- a/Action.c
+++ b/Action.c
@@ -388,10 +388,7 @@ Htop_Reaction Action_follow(State* st) {
static Htop_Reaction actionSetup(State* st) {
Action_runSetup(st);
- int headerHeight = Header_calculateHeight(st->header);
- Panel_move((Panel*)st->mainPanel, 0, headerHeight);
- Panel_resize((Panel*)st->mainPanel, COLS, LINES - headerHeight - 1);
- return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
+ return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR | HTOP_RESIZE;
}
static Htop_Reaction actionLsof(State* st) {

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