diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-09-18 11:48:32 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-09-18 11:48:32 +0200 |
commit | bf7d98e7ac8e779baa2205c649c8c424667fc4c6 (patch) | |
tree | 0e0488b7eda121b57bc46463db1e4dd1bb899f0c | |
parent | c096712b8d8735c2d3de4f1cd6d53d47d2d4713d (diff) |
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.
-rw-r--r-- | MainPanel.c | 4 |
1 files 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)) { |