From 3727629f7dccbb68c89953bcff0f95f7c2a02e7f Mon Sep 17 00:00:00 2001 From: stkhan Date: Wed, 26 Feb 2025 23:02:34 -0600 Subject: Unlock refresh rate --- wm/dwm-6.4/dwm.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'wm/dwm-6.4/dwm.c') 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 -- cgit v1.2.3