aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-02-11 04:18:07 +0100
committerDuncaen <mail@duncano.de>2018-12-31 22:54:45 +0100
commit0b8c2bd23944e0e6bb834400bc934a0073e8dfef (patch)
treee0d2074151d9fde3ee256e8d88bd5cf8c430de38
parent700a05f590986935d8861317b74fa02f54081045 (diff)
downloaddwm-0b8c2bd23944e0e6bb834400bc934a0073e8dfef.tar.gz
less statusbar redrawing
-rw-r--r--dwm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 1a9052a..24bb2cf 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1245,7 +1245,6 @@ propertynotify(XEvent *e)
break;
case XA_WM_HINTS:
updatewmhints(c);
- drawbars();
break;
}
if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
@@ -1365,7 +1364,6 @@ restack(Monitor *m)
XEvent ev;
XWindowChanges wc;
- drawbar(m);
if (!m->sel)
return;
if (m->sel->isfloating || !m->lt[m->sellt]->arrange)
@@ -1521,8 +1519,7 @@ setlayout(const Arg *arg)
strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
if (selmon->sel)
arrange(selmon);
- else
- drawbar(selmon);
+ drawbar(selmon);
}
/* arg > 1.0 will set mfact absolutely */
@@ -1740,6 +1737,7 @@ togglefloating(const Arg *arg)
resize(selmon->sel, selmon->sel->x, selmon->sel->y,
selmon->sel->w, selmon->sel->h, 0, 0);
arrange(selmon);
+ drawbar(selmon);
}
void
@@ -2047,8 +2045,10 @@ updatewmhints(Client *c)
XSetWMHints(dpy, c->win, wmh);
} else {
c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0;
- if (c->isurgent)
+ if (c->isurgent) {
XSetWindowBorder(dpy, c->win, scheme[SchemeUrg][ColBorder].pixel);
+ drawbar(c->mon);
+ }
}
if (wmh->flags & InputHint)
c->neverfocus = !wmh->input;