瀏覽代碼

Use client theme as surface theme

Martin Duquesnoy 12 年之前
父節點
當前提交
21ab9cec9a
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);