commit 74edc27caa65aba9ea8d1fe03d26e3b449f79590 from: Hiltjo Posthuma date: Tue Aug 12 17:17:20 2025 UTC config: make refreshrate for mouse move/resize a config option Bump the default from 60 to 120. commit - 693d94d350c806e77677c35958e18590c26e19d2 commit + 74edc27caa65aba9ea8d1fe03d26e3b449f79590 blob - 9efa7744b39c8b0ff0cf09a504a2539910c2881c blob + 81c3fc0c207b6ac44c7036f18ecb6c1cae00641e --- config.def.h +++ config.def.h @@ -36,6 +36,7 @@ static const float mfact = 0.55; /* factor of mast static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ +static const int refreshrate = 120; /* refresh rate (per second) for client move/resize */ static const Layout layouts[] = { /* symbol arrange function */ blob - 14438024ca4a5fa85eb2a779da4f8771f124854f blob + 4cf07eb498a9db92c0918505ba0247559850ade4 --- dwm.c +++ 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;