diff options
| author | Fuwn <[email protected]> | 2024-05-23 14:29:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-23 14:29:59 -0700 |
| commit | 68c988ef29c918c61822e04830654722168ae751 (patch) | |
| tree | f3952f618ffb5d28cbe4d9f2ad03e71e57e6c2d0 /dwm.c | |
| parent | feat(config.h): update my configuration (diff) | |
| download | seiwm-68c988ef29c918c61822e04830654722168ae751.tar.xz seiwm-68c988ef29c918c61822e04830654722168ae751.zip | |
feat(dwm.c): remove window refresh rate limit
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1394,7 +1394,7 @@ movemouse(const Arg *arg) Client *c; Monitor *m; XEvent ev; - Time lasttime = 0; + /* Time lasttime = 0; */ if (!(c = selmon->sel)) return; @@ -1417,9 +1417,9 @@ movemouse(const Arg *arg) handler[ev.type](&ev); break; case MotionNotify: - if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + /* if ((ev.xmotion.time - lasttime) <= (1000 / 60)) continue; - lasttime = ev.xmotion.time; + lasttime = ev.xmotion.time; */ nx = ocx + (ev.xmotion.x - x); ny = ocy + (ev.xmotion.y - y); @@ -1573,7 +1573,7 @@ resizemouse(const Arg *arg) Client *c; Monitor *m; XEvent ev; - Time lasttime = 0; + /* Time lasttime = 0; */ if (!(c = selmon->sel)) return; @@ -1595,9 +1595,9 @@ resizemouse(const Arg *arg) handler[ev.type](&ev); break; case MotionNotify: - if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + /* if ((ev.xmotion.time - lasttime) <= (1000 / 60)) continue; - lasttime = ev.xmotion.time; + 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); |