Introduction
Introduction Statistics Contact Development Disclaimer Help
config: make refreshrate for mouse move/resize a config option - dwm - dynamic …
git clone git://git.suckless.org/dwm
Log
Files
Refs
README
LICENSE
---
commit 74edc27caa65aba9ea8d1fe03d26e3b449f79590
parent 693d94d350c806e77677c35958e18590c26e19d2
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 12 Aug 2025 19:17:20 +0200
config: make refreshrate for mouse move/resize a config option
Bump the default from 60 to 120.
Diffstat:
M config.def.h | 1 +
M dwm.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/config.def.h b/config.def.h
@@ -36,6 +36,7 @@ static const float mfact = 0.55; /* factor of master area…
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled re…
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen w…
+static const int refreshrate = 120; /* refresh rate (per second) for client m…
static const Layout layouts[] = {
/* symbol arrange function */
diff --git 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 / refreshrat…
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 / refreshrat…
continue;
lasttime = ev.xmotion.time;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.