Use client theme as surface theme

This commit is contained in:
Martin Duquesnoy 2012-02-07 16:59:41 +01:00
parent 229597a532
commit 21ab9cec9a

View File

@ -565,7 +565,8 @@ status_surface(int x, int y, int w, int h, Color bg, char *status)
b = barwin_new(W->root, x, y, w, h, 0, bg, false);
barwin_map(b);
ctx = status_new_ctx(b, SLIST_FIRST(&W->h.theme));
/* Use client theme */
ctx = status_new_ctx(b, W->ctheme);
ctx.status = xstrdup(status);
SLIST_INSERT_HEAD(&W->h.vbarwin, b, vnext);