Connor Lane Smith 14 年之前
父节点
当前提交
8a111c181e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dwm.c

+ 1 - 1
dwm.c

@@ -781,7 +781,7 @@ void
 drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
 drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
 	int x;
 	int x;
 
 
-	XSetForeground(dpy, dc.gc, col[invert ? ColFG : ColBG]);
+	XSetForeground(dpy, dc.gc, col[invert ? ColBG : ColFG]);
 	x = (dc.font.ascent + dc.font.descent + 2) / 4;
 	x = (dc.font.ascent + dc.font.descent + 2) / 4;
 	if(filled)
 	if(filled)
 		XFillRectangle(dpy, dc.drawable, dc.gc, dc.x+1, dc.y+1, x+1, x+1);
 		XFillRectangle(dpy, dc.drawable, dc.gc, dc.x+1, dc.y+1, x+1, x+1);