From bf7d98e7ac8e779baa2205c649c8c424667fc4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 18 Sep 2021 11:48:32 +0200 Subject: MainPanel: do not reset on disabled mouse events Do not reset the hidden process selection (and hidden function bar) on mouse events, when mouse support is disabled. --- MainPanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainPanel.c b/MainPanel.c index 21b5d1a3..e7033bf4 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -61,8 +61,8 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) { if (ch == KEY_RESIZE) return IGNORED; - /* reset on every normal key */ - if (ch != ERR) + /* reset on every normal key, except mouse events while mouse support is disabled */ + if (ch != ERR && (ch != KEY_MOUSE || this->state->settings->enableMouse)) this->state->hideProcessSelection = false; if (EVENT_IS_HEADER_CLICK(ch)) { -- cgit v1.2.3