summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
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 1443802..4cf07eb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1171,7 +1171,7 @@ movemouse(const Arg *arg)
1171 handler[ev.type](&ev); 1171 handler[ev.type](&ev);
1172 break; 1172 break;
1173 case MotionNotify: 1173 case MotionNotify:
1174 if ((ev.xmotion.time - lasttime) <= (1000 / 60)) 1174 if ((ev.xmotion.time - lasttime) <= (1000 / refreshrate))
1175 continue; 1175 continue;
1176 lasttime = ev.xmotion.time; 1176 lasttime = ev.xmotion.time;
1177 1177
@@ -1325,7 +1325,7 @@ resizemouse(const Arg *arg)
1325 handler[ev.type](&ev); 1325 handler[ev.type](&ev);
1326 break; 1326 break;
1327 case MotionNotify: 1327 case MotionNotify:
1328 if ((ev.xmotion.time - lasttime) <= (1000 / 60)) 1328 if ((ev.xmotion.time - lasttime) <= (1000 / refreshrate))
1329 continue; 1329 continue;
1330 lasttime = ev.xmotion.time; 1330 lasttime = ev.xmotion.time;
1331 1331