summaryrefslogtreecommitdiffstats
path: root/DisplayOptionsPanel.c
diff options
context:
space:
mode:
authornia <nia@NetBSD.org>2021-07-14 21:07:43 +0200
committerBenBE <BenBE@geshi.org>2021-07-15 19:09:08 +0200
commite8f27ebc2616f875c00d814ab7f29d107e4998c1 (patch)
tree3414ba1199802bea2ed9f97602499652c7846b65 /DisplayOptionsPanel.c
parent2ab8fb83ba7d210c7c377b5b417f79822a6f7724 (diff)
Disable mouse option when support is unavailable
Diffstat (limited to 'DisplayOptionsPanel.c')
-rw-r--r--DisplayOptionsPanel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c
index ab80aaa0..23b16bb2 100644
--- a/DisplayOptionsPanel.c
+++ b/DisplayOptionsPanel.c
@@ -131,7 +131,9 @@ DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager*
&(settings->showCPUTemperature)));
Panel_add(super, (Object*) CheckItem_newByRef("- Show temperature in degree Fahrenheit instead of Celsius", &(settings->degreeFahrenheit)));
#endif
+ #ifdef HAVE_GETMOUSE
Panel_add(super, (Object*) CheckItem_newByRef("Enable the mouse", &(settings->enableMouse)));
+ #endif
Panel_add(super, (Object*) NumberItem_newByRef("Update interval (in seconds)", &(settings->delay), -1, 1, 255));
Panel_add(super, (Object*) CheckItem_newByRef("Highlight new and old processes", &(settings->highlightChanges)));
Panel_add(super, (Object*) NumberItem_newByRef("- Highlight time (in seconds)", &(settings->highlightDelaySecs), 0, 1, 24 * 60 * 60));

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