summaryrefslogtreecommitdiffstats
path: root/smenu.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2022-11-13 11:13:22 +0100
committerpgen <p.gen.progs@gmail.com>2022-11-13 11:13:22 +0100
commit813078ebf97a875a60ad3ae0c46cb7d197585214 (patch)
treedaf84e0c9528a2d3483c5d66aaea691c80a79d20 /smenu.c
parentd79b3fd48a14d941125e60da39c53c42f7076b9e (diff)
Correct a logical condition
The verification that the double-click delay was within the imposed limits was not good.
Diffstat (limited to 'smenu.c')
-rw-r--r--smenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smenu.c b/smenu.c
index dfb0f19..2add98c 100644
--- a/smenu.c
+++ b/smenu.c
@@ -6554,7 +6554,7 @@ double_click_action(char * ctx_name, char * opt_name, char * param,
return; /* default value (150 ~ 1/6.66th second) is set in main(). */
else if (mouse->double_click_delay == 0)
*ddc = 1; /* disable double_click; */
- else if (mouse->double_click_delay >= 100 || mouse->double_click_delay <= 500)
+ else if (mouse->double_click_delay >= 100 && mouse->double_click_delay <= 500)
mouse->double_click_delay = val;
}