diff --git a/src/barwin.c b/src/barwin.c index 8980fc7..0a81b9b 100644 --- a/src/barwin.c +++ b/src/barwin.c @@ -108,9 +108,6 @@ barwin_create(Window parent, void barwin_draw_text(BarWindow *bw, int x, int y, char *text) { - if(!text) - return; - /* Background color of the text if there is stipple */ if(bw->flags & StippleFlag) draw_rectangle(bw->dr, x - 4, 0, textw(text) + 8, bw->geo.height, bw->bg); diff --git a/src/client.c b/src/client.c index 6d54fea..a89d390 100644 --- a/src/client.c +++ b/src/client.c @@ -247,7 +247,7 @@ void client_focus(Client *c) { bool prevwasmax = False; - int prevscreen; + int prevscreen = 0; Client *cc; if(sel && sel != c) diff --git a/src/frame.c b/src/frame.c index 3121cc6..8ab2680 100644 --- a/src/frame.c +++ b/src/frame.c @@ -285,8 +285,6 @@ frame_update(Client *c) XSetWindowBorder(dpy, c->button[i], c->colors.frame); } } - - barwin_refresh(c->titlebar); } XSetWindowBackground(dpy, c->frame, c->colors.frame);