Forráskód Böngészése

Use client theme as surface theme

Martin Duquesnoy 12 éve
szülő
commit
21ab9cec9a
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/status.c

+ 2 - 1
src/status.c

@@ -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);