Introduction
Introduction Statistics Contact Development Disclaimer Help
dwm-customrefreshrate-6.5.diff - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
dwm-customrefreshrate-6.5.diff (1648B)
---
1 From d443eec1ead848777b49906ed2a962bfd8b8559d Mon Sep 17 00:00:00 2001
2 From: moonsabre <[email protected]>
3 Date: Thu, 27 Mar 2025 11:33:41 -0700
4 Subject: [PATCH] Add custom refresh rate parameter.
5
6 ---
7 config.def.h | 1 +
8 dwm.c | 4 ++--
9 2 files changed, 3 insertions(+), 2 deletions(-)
10
11 diff --git a/config.def.h b/config.def.h
12 index 9efa774..a70b081 100644
13 --- a/config.def.h
14 +++ b/config.def.h
15 @@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; /* borde…
16 static const unsigned int snap = 32; /* snap pixel */
17 static const int showbar = 1; /* 0 means no bar */
18 static const int topbar = 1; /* 0 means bottom bar */
19 +static const int refreshrate = 60; /* Update rate for drag…
20 static const char *fonts[] = { "monospace:size=10" };
21 static const char dmenufont[] = "monospace:size=10";
22 static const char col_gray1[] = "#222222";
23 diff --git a/dwm.c b/dwm.c
24 index 1443802..4cf07eb 100644
25 --- a/dwm.c
26 +++ b/dwm.c
27 @@ -1171,7 +1171,7 @@ movemouse(const Arg *arg)
28 handler[ev.type](&ev);
29 break;
30 case MotionNotify:
31 - if ((ev.xmotion.time - lasttime) <= (1000 / 60))
32 + if ((ev.xmotion.time - lasttime) <= (1000 / ref…
33 continue;
34 lasttime = ev.xmotion.time;
35
36 @@ -1325,7 +1325,7 @@ resizemouse(const Arg *arg)
37 handler[ev.type](&ev);
38 break;
39 case MotionNotify:
40 - if ((ev.xmotion.time - lasttime) <= (1000 / 60))
41 + if ((ev.xmotion.time - lasttime) <= (1000 / ref…
42 continue;
43 lasttime = ev.xmotion.time;
44
45 --
46 2.49.0
47
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.