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 /MainPanel.c | |
parent | b9e69223d02287f75c24c3f5be869a04979e5b17 (diff) |
Abstract resize handling by adding a new Htop reaction
Diffstat (limited to 'MainPanel.c')
-rw-r--r-- | MainPanel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MainPanel.c b/MainPanel.c index 5a75af3a..21b5d1a3 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -112,6 +112,9 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) { if (reaction & HTOP_REDRAW_BAR) { MainPanel_updateTreeFunctions(this, this->state->settings->treeView); } + if (reaction & HTOP_RESIZE) { + result |= RESIZE; + } if (reaction & HTOP_UPDATE_PANELHDR) { result |= REDRAW; } |