aboutsummaryrefslogtreecommitdiff
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
parent9f92432bc715bf3291213661d82cccbbe3969bf7 (diff)
parent74edc27caa65aba9ea8d1fe03d26e3b449f79590 (diff)
Merge branch 'master' into flyfly
-rw-r--r--config.def.h1
-rw-r--r--config.mk2
-rw-r--r--dwm.c4
3 files changed, 4 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 88de8ec..c8b0212 100644
--- a/config.def.h
+++ b/config.def.h
@@ -44,6 +44,7 @@ static const float mfact = 0.55; /* factor of master area size [0.05..0.95]
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 */
diff --git a/config.mk b/config.mk
index 8efca9a..b469a2b 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
# dwm version
-VERSION = 6.5
+VERSION = 6.6
# Customize below to fit your system
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;