From 0619a98686d3053e17a7b2f850630bffc32b47cd Mon Sep 17 00:00:00 2001 From: speedie Date: Sun, 4 Dec 2022 22:26:36 +0100 Subject: [PATCH] minor cleanup --- speedwm.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/speedwm.c b/speedwm.c index a724754..8fc866a 100644 --- a/speedwm.c +++ b/speedwm.c @@ -1220,8 +1220,9 @@ warp(const Client *c) { int x, y; - if (!warpcursor) + if (!warpcursor) { return; + } if (!c) { XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->wx + selmon->ww/2, selmon->wy + selmon->wh/2); @@ -1428,7 +1429,6 @@ void cleanupmon(Monitor *mon) { Monitor *m; - Bar *bar; if (mon == mons) mons = mons->next; @@ -1787,7 +1787,6 @@ void destroynotify(XEvent *e) { Client *c; - Monitor *m; XDestroyWindowEvent *ev = &e->xdestroywindow; if ((c = wintoclient(ev->window))) { @@ -3446,8 +3445,6 @@ motionnotify(XEvent *e) Client *sel; XMotionEvent *ev = &e->xmotion; - Client *c; - if (ev->window != root) return; if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) { @@ -4566,7 +4563,6 @@ void restack(Monitor *m) { Client *c; - XEvent ev; XWindowChanges wc; drawbaritems(m); @@ -5580,7 +5576,6 @@ void unmapnotify(XEvent *e) { Client *c; - Monitor *m; XUnmapEvent *ev = &e->xunmap; if ((c = wintoclient(ev->window))) { @@ -5599,7 +5594,6 @@ unmapnotify(XEvent *e) void updatebars(void) { - unsigned int w; Bar *bar; Monitor *m; XSetWindowAttributes wa = {