summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
diff options
context:
space:
mode:
Diffstat (limited to 'MainPanel.c')
-rw-r--r--MainPanel.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/MainPanel.c b/MainPanel.c
index e43610a3..07dc6319 100644
--- a/MainPanel.c
+++ b/MainPanel.c
@@ -61,8 +61,14 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
if (ch == KEY_RESIZE)
return IGNORED;
- /* reset on every normal key, except mouse events while mouse support is disabled */
- if (ch != ERR && (ch != KEY_MOUSE || this->state->settings->enableMouse))
+ /* reset on every normal key */
+ bool needReset = ch != ERR;
+ #ifdef HAVE_GETMOUSE
+ /* except mouse events while mouse support is disabled */
+ if (!(ch != KEY_MOUSE || this->state->settings->enableMouse))
+ needReset = false;
+ #endif
+ if (needReset)
this->state->hideProcessSelection = false;
if (EVENT_IS_HEADER_CLICK(ch)) {

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