mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Identified and fixed a few more cross-compilation issues related to prior refactoring / simplification
This commit is contained in:
parent
939a407e25
commit
7ce66bf122
4
drw.c
4
drw.c
@ -618,11 +618,11 @@ drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h)
|
||||
}
|
||||
|
||||
unsigned int
|
||||
drw_fontset_getwidth(Drw *drw, const char *text, Bool ignored)
|
||||
drw_fontset_getwidth(Drw *drw, const char *text, Bool markup)
|
||||
{
|
||||
if (!drw || !drw->fonts || !text)
|
||||
return 0;
|
||||
return drw_text(drw, 0, 0, 0, 0, 0, text, 0, ignored);
|
||||
return drw_text(drw, 0, 0, 0, 0, 0, text, 0, markup);
|
||||
}
|
||||
|
||||
#if BAR_PANGO_PATCH
|
||||
|
@ -102,7 +102,7 @@ drawpowerlinestatus(int xpos, char *stext)
|
||||
|
||||
drw_setscheme(drw, nxtscheme);
|
||||
w = TEXTW(bs+2);
|
||||
drw_text(drw, x - w, 0, w, bh, lrpad / 2, bs+2, 0);
|
||||
drw_text(drw, x - w, 0, w, bh, lrpad / 2, bs+2, 0, False);
|
||||
x -= w;
|
||||
|
||||
bp = *bs;
|
||||
|
@ -61,8 +61,8 @@ draw_pwrl_tags(Bar *bar, BarDrawArg *a)
|
||||
#endif // BAR_POWERLINE_TAGS_SLASH_PATCH
|
||||
x += plw;
|
||||
drw_setscheme(drw, nxtscheme);
|
||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], invert);
|
||||
drawindicator(m, NULL, occ, x, w, i, -1, invert, tagindicatortype);
|
||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], invert, False);
|
||||
drawindicator(bar->mon, NULL, occ, x, w, i, -1, invert, tagindicatortype);
|
||||
x += w;
|
||||
prevscheme = nxtscheme;
|
||||
}
|
||||
|
@ -12,11 +12,7 @@ textw_wosc(char *s)
|
||||
}
|
||||
ctmp = *ts;
|
||||
*ts = '\0';
|
||||
#if BAR_PANGO_PATCH
|
||||
sw += drw_font_getwidth(drw, tp, True);
|
||||
#else
|
||||
sw += drw_fontset_getwidth(drw, tp);
|
||||
#endif // BAR_PANGO_PATCH
|
||||
sw += drw_fontset_getwidth(drw, tp, True);
|
||||
*ts = ctmp;
|
||||
if (ctmp == '\0')
|
||||
break;
|
||||
|
@ -59,7 +59,7 @@ bartabdraw(Monitor *m, Client *c, int unused, int x, int w, int groupactive, Arg
|
||||
pad = (w - TEXTW(c->name) + lrpad) / 2;
|
||||
#endif // BAR_CENTEREDWINDOWNAME_PATCH
|
||||
|
||||
drw_text(drw, x, 0, w, bh, pad, c->name, 0);
|
||||
drw_text(drw, x, 0, w, bh, pad, c->name, 0, False);
|
||||
if (c->isfloating)
|
||||
drawindicator(m, c, 1, x, w, 0, 0, c->isfixed, floatindicatortype);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user