From 74edc27caa65aba9ea8d1fe03d26e3b449f79590 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 12 Aug 2025 19:17:20 +0200 Subject: config: make refreshrate for mouse move/resize a config option Bump the default from 60 to 120. --- dwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dwm.c') 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) 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; @@ -1325,7 +1325,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; -- cgit v1.2.3-70-g09d2