diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-02 23:49:04 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-01-04 23:12:43 +0100 |
commit | badeaf9e8298b9b8bbb37252eacb0eb2fcf14b98 (patch) | |
tree | 8820408363e64ab51114a1ba8e8dad7969674517 /MainPanel.c | |
parent | a3cced9fb615a1cfe0b334fc41dc785f1fb9aef5 (diff) |
IncSet: do not resize on our own and do not search on resize
The supervising ScreenManager will resize all Panels.
Also do not start the search on resize.
Diffstat (limited to 'MainPanel.c')
-rw-r--r-- | MainPanel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MainPanel.c b/MainPanel.c index 9fbd69d9..3e7a812d 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -51,8 +51,12 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) { Htop_Reaction reaction = HTOP_OK; + /* Let supervising ScreenManager handle resize */ + if (ch == KEY_RESIZE) + return IGNORED; + /* reset on every normal key */ - if (ch != ERR && ch != KEY_RESIZE) + if (ch != ERR) this->state->hideProcessSelection = false; if (EVENT_IS_HEADER_CLICK(ch)) { |