summaryrefslogtreecommitdiff
path: root/wm/dwm-6.4/dwm.c
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2025-02-26 23:02:34 -0600
committerstkhan <personal@slickd.xyz>2025-02-26 23:02:34 -0600
commit3727629f7dccbb68c89953bcff0f95f7c2a02e7f (patch)
tree46ac3c199f88f8cd07683c51043394134fd15aba /wm/dwm-6.4/dwm.c
parent74380a3cb0a1f93f128260646afd8a8801f5dfee (diff)
Unlock refresh rate
Diffstat (limited to 'wm/dwm-6.4/dwm.c')
-rw-r--r--wm/dwm-6.4/dwm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/wm/dwm-6.4/dwm.c b/wm/dwm-6.4/dwm.c
index 159f5d7..9343071 100644
--- a/wm/dwm-6.4/dwm.c
+++ b/wm/dwm-6.4/dwm.c
@@ -1342,7 +1342,6 @@ movemouse(const Arg *arg)
Client *c;
Monitor *m;
XEvent ev;
- Time lasttime = 0;
if (!(c = selmon->sel))
return;
@@ -1365,10 +1364,6 @@ movemouse(const Arg *arg)
handler[ev.type](&ev);
break;
case MotionNotify:
- if ((ev.xmotion.time - lasttime) <= (1000 / 60))
- continue;
- lasttime = ev.xmotion.time;
-
nx = ocx + (ev.xmotion.x - x);
ny = ocy + (ev.xmotion.y - y);
if (abs(selmon->wx - nx) < snap)
@@ -1513,7 +1508,6 @@ resizemouse(const Arg *arg)
Client *c;
Monitor *m;
XEvent ev;
- Time lasttime = 0;
if (!(c = selmon->sel))
return;
@@ -1535,10 +1529,6 @@ resizemouse(const Arg *arg)
handler[ev.type](&ev);
break;
case MotionNotify:
- if ((ev.xmotion.time - lasttime) <= (1000 / 60))
- continue;
- lasttime = ev.xmotion.time;
-
nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
if (c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww