minor cleanup
This commit is contained in:
parent
1f5e67ee3e
commit
0619a98686
10
speedwm.c
10
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 = {
|
||||
|
|
Loading…
Reference in a new issue