diff options
| author | pml68 <contact@pml68.dev> | 2025-09-16 23:03:20 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-09-16 23:05:32 +0200 |
| commit | 74ba864107d69b7674b14d5f6cb6a173987c0793 (patch) | |
| tree | 537fc12713850f56a2a5cbfce5c191aa308d4340 /dwm/dwm.c | |
| parent | chore: sync st with upstream (diff) | |
| download | suckless-setup-74ba864107d69b7674b14d5f6cb6a173987c0793.tar.gz | |
chore: sync dwm with upstream
Diffstat (limited to 'dwm/dwm.c')
| -rw-r--r-- | dwm/dwm.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -50,7 +50,6 @@ #define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \ * MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy))) #define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) -#define LENGTH(X) (sizeof X / sizeof X[0]) #define MOUSEMASK (BUTTONMASK|PointerMotionMask) #define WIDTH(X) ((X)->w + 2 * (X)->bw + gappx) #define HEIGHT(X) ((X)->h + 2 * (X)->bw + gappx) @@ -1258,7 +1257,7 @@ movemouse(const Arg *arg) handler[ev.type](&ev); break; case MotionNotify: - if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + if ((ev.xmotion.time - lasttime) <= (1000 / refreshrate)) continue; lasttime = ev.xmotion.time; @@ -1436,7 +1435,7 @@ resizemouse(const Arg *arg) handler[ev.type](&ev); break; case MotionNotify: - if ((ev.xmotion.time - lasttime) <= (1000 / 60)) + if ((ev.xmotion.time - lasttime) <= (1000 / refreshrate)) continue; lasttime = ev.xmotion.time; @@ -2030,7 +2029,7 @@ updatebarpos(Monitor *m) } void -updateclientlist() +updateclientlist(void) { Client *c; Monitor *m; |
