summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2021-09-28 09:17:19 +0200
committerBenBE <BenBE@geshi.org>2021-09-29 22:21:53 +0200
commitd23627fda9878f0a8640c24d95145d56882ba503 (patch)
tree6454a0cede8090761943e7f95a44aa8795a4406f
parent4c846921a6b4a9883621978f90f579ad88a38450 (diff)
Adds a missing HAVE_GETMOUSE check.
Fixes builds failing with error MainPanel.c:65:62: error: 'Settings {aka struct Settings_}' has no member named 'enableMouse' if (ch != ERR && (ch != KEY_MOUSE || this->state->settings->enableMouse))
-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-2022 Faster IT GmbH | imprint | privacy policy