summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-09-20 16:29:05 +1000
committerNathan Scott <nathans@redhat.com>2021-09-20 16:29:05 +1000
commit09ad8067f4b0835b4274b68abfdd57704fd3c31d (patch)
tree8e152b6b27662e0a75c6def812a4f3998393806f
parent80a515abcc746f8b749c7923438758d8c9666eec (diff)
parentbf7d98e7ac8e779baa2205c649c8c424667fc4c6 (diff)
Merge branch 'mouse' of https://github.com/cgzones/htop into cgzones-mouse
-rw-r--r--MainPanel.c4
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)) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy