diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-21 20:48:45 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-08-22 10:40:59 +0200 |
commit | 68f2bfea619a454b5de1431689eb086cf13f5ceb (patch) | |
tree | 9c75b625e2aac6035aad2cdc9a51be863d26c59e /Action.c | |
parent | b9e69223d02287f75c24c3f5be869a04979e5b17 (diff) |
Abstract resize handling by adding a new Htop reaction
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) { |