Introduction
Introduction Statistics Contact Development Disclaimer Help
dwm-refreshrate-20230826-9554a10.diff - sites - public wiki contents of suckles…
git clone git://git.suckless.org/sites
Log
Files
Refs
---
dwm-refreshrate-20230826-9554a10.diff (1500B)
---
1 From 9554a109e240789f76f0ece3e62f9014ceb8a4bc Mon Sep 17 00:00:00 2001
2 From: sewn <[email protected]>
3 Date: Sat, 26 Aug 2023 22:57:51 +0300
4 Subject: [PATCH] dwm: remove resize/move limitation
5
6 we have modern machines, and we have high refresh rate monitors;
7 this makes resizing and moving windows have no limit when refreshing.
8 ---
9 dwm.c | 10 ----------
10 1 file changed, 10 deletions(-)
11
12 diff --git a/dwm.c b/dwm.c
13 index f1d86b2..4c00cbe 100644
14 --- a/dwm.c
15 +++ b/dwm.c
16 @@ -1149,7 +1149,6 @@ movemouse(const Arg *arg)
17 Client *c;
18 Monitor *m;
19 XEvent ev;
20 - Time lasttime = 0;
21
22 if (!(c = selmon->sel))
23 return;
24 @@ -1172,10 +1171,6 @@ movemouse(const Arg *arg)
25 handler[ev.type](&ev);
26 break;
27 case MotionNotify:
28 - if ((ev.xmotion.time - lasttime) <= (1000 / 60))
29 - continue;
30 - lasttime = ev.xmotion.time;
31 -
32 nx = ocx + (ev.xmotion.x - x);
33 ny = ocy + (ev.xmotion.y - y);
34 if (abs(selmon->wx - nx) < snap)
35 @@ -1304,7 +1299,6 @@ resizemouse(const Arg *arg)
36 Client *c;
37 Monitor *m;
38 XEvent ev;
39 - Time lasttime = 0;
40
41 if (!(c = selmon->sel))
42 return;
43 @@ -1326,10 +1320,6 @@ resizemouse(const Arg *arg)
44 handler[ev.type](&ev);
45 break;
46 case MotionNotify:
47 - if ((ev.xmotion.time - lasttime) <= (1000 / 60))
48 - continue;
49 - lasttime = ev.xmotion.time;
50 -
51 nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
52 nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
53 if (c->mon->wx + nw >= selmon->wx && c->mon->wx…
54 --
55 2.42.0
56
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.