minor code style changes

This commit is contained in:
sewn 2024-10-10 21:05:43 +03:00
parent 4245df8e19
commit a0c435a6f3
No known key found for this signature in database

6
dam.c
View file

@ -211,11 +211,10 @@ bar_load_fonts(Bar *bar)
static void static void
bar_draw(Bar *bar) bar_draw(Bar *bar)
{ {
int i; int x = 0, w, tw = 0;
int tw = 0;
int x = 0, w;
int boxs = bar->drw->font->height / 9; int boxs = bar->drw->font->height / 9;
int boxw = bar->drw->font->height / 6 + 2; int boxw = bar->drw->font->height / 6 + 2;
unsigned int i;
DrwBuf *buf; DrwBuf *buf;
if (!bar->configured) if (!bar->configured)
@ -224,7 +223,6 @@ bar_draw(Bar *bar)
if (!(buf = bufpool_getbuf(&bar->pool, shm, bar->width, bar->height))) if (!(buf = bufpool_getbuf(&bar->pool, shm, bar->width, bar->height)))
die(errno ? "bufpool_getbuf:" : "no buffer available"); die(errno ? "bufpool_getbuf:" : "no buffer available");
drwl_setimage(bar->drw, buf->image); drwl_setimage(bar->drw, buf->image);
drwl_setscheme(bar->drw, colors[SchemeNorm]);
/* draw status first so it can be overdrawn by tags later */ /* draw status first so it can be overdrawn by tags later */
if (bar == selbar) { /* status is only drawn on selected monitor */ if (bar == selbar) { /* status is only drawn on selected monitor */