From 68f2bfea619a454b5de1431689eb086cf13f5ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 21 Aug 2021 20:48:45 +0200 Subject: Abstract resize handling by adding a new Htop reaction --- Action.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Action.c') 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) { -- cgit v1.2.3