Introduction
Introduction Statistics Contact Development Disclaimer Help
Add customrefreshrate patch to dwm patches repository. - sites - public wiki co…
git clone git://git.suckless.org/sites
Log
Files
Refs
---
commit cf6279c687765a4571cdf166e7bb9f91fc5af44e
parent 137d3476923d3c7907be6537d15f5f44ae3e1cb4
Author: moonsabre <[email protected]>
Date: Thu, 27 Mar 2025 12:06:42 -0700
Add customrefreshrate patch to dwm patches repository.
Diffstat:
A dwm.suckless.org/patches/customref… | 47 +++++++++++++++++++++++++++…
A dwm.suckless.org/patches/customref… | 15 +++++++++++++++
2 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/dwm.suckless.org/patches/customrefreshrate/dwm-customrefreshrate-6…
@@ -0,0 +1,47 @@
+From d443eec1ead848777b49906ed2a962bfd8b8559d Mon Sep 17 00:00:00 2001
+From: moonsabre <[email protected]>
+Date: Thu, 27 Mar 2025 11:33:41 -0700
+Subject: [PATCH] Add custom refresh rate parameter.
+
+---
+ config.def.h | 1 +
+ dwm.c | 4 ++--
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/config.def.h b/config.def.h
+index 9efa774..a70b081 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; /* border pixe…
+ static const unsigned int snap = 32; /* snap pixel */
+ static const int showbar = 1; /* 0 means no bar */
+ static const int topbar = 1; /* 0 means bottom bar */
++static const int refreshrate = 60; /* Update rate for drag and r…
+ static const char *fonts[] = { "monospace:size=10" };
+ static const char dmenufont[] = "monospace:size=10";
+ static const char col_gray1[] = "#222222";
+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 / refreshra…
+ 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 / refreshra…
+ continue;
+ lasttime = ev.xmotion.time;
+
+--
+2.49.0
+
diff --git a/dwm.suckless.org/patches/customrefreshrate/index.md b/dwm.suckless…
@@ -0,0 +1,15 @@
+# customrefreshrate
+
+## Description
+
+This simple patch aims to make window dragging & resizing smoother by allowing…
+
+To set a custom refresh rate, edit the *refreshrate* variable in config.h. The…
+
+## Download
+
+* [dwm-customrefreshrate-6.5.diff](dwm-customrefreshrate-6.5.diff) (2025-03-27)
+
+## Author
+
+* [moonsabre](mailto:[email protected])
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.