aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-08-13 14:08:07 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-08-13 14:08:07 +0800
commited2e5ce863571975b2734718b76a3c0ea6493af6 (patch)
treefe59647dae818a685f2b8f0bcda18b80a93545a6 /dwm.c
parent9f92432bc715bf3291213661d82cccbbe3969bf7 (diff)
parent74edc27caa65aba9ea8d1fe03d26e3b449f79590 (diff)
Merge branch 'master' into flyfly
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 7fb67f1..12a1a82 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1172,7 +1172,7 @@ movemouse(const Arg *arg)
handler[ev.type](&ev);
break;
case MotionNotify:
- if ((ev.xmotion.time - lasttime) <= (1000 / 60))
+ if ((ev.xmotion.time - lasttime) <= (1000 / refreshrate))
continue;
lasttime = ev.xmotion.time;
@@ -1326,7 +1326,7 @@ resizemouse(const Arg *arg)
handler[ev.type](&ev);
break;
case MotionNotify:
- if ((ev.xmotion.time - lasttime) <= (1000 / 60))
+ if ((ev.xmotion.time - lasttime) <= (1000 / refreshrate))
continue;
lasttime = ev.xmotion.time;