From badeaf9e8298b9b8bbb37252eacb0eb2fcf14b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 2 Jan 2021 23:49:04 +0100 Subject: 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. --- MainPanel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'MainPanel.c') 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)) { -- cgit v1.2.3