X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dwm.c;h=7846be0b33b8caeb6c54b0191e92b55c23cffc62;hb=60c06a7cb42219953edf1fa752750eb98384a14b;hp=05ab119df8a0fb5399ff284ba292c5ff34f45613;hpb=2255bf46a0af475e70fb4cc90d912b435f21eb5e;p=dwm.git diff --git a/dwm.c b/dwm.c index 05ab119..7846be0 100644 --- a/dwm.c +++ b/dwm.c @@ -781,7 +781,7 @@ void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) { 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; if(filled) XFillRectangle(dpy, dc.drawable, dc.gc, dc.x+1, dc.y+1, x+1, x+1); @@ -2034,7 +2034,6 @@ zoom(const Arg *arg) { Client *c = selmon->sel; if(!selmon->lt[selmon->sellt]->arrange - || selmon->lt[selmon->sellt]->arrange == monocle || (selmon->sel && selmon->sel->isfloating)) return; if(c == nexttiled(selmon->clients)) @@ -2046,7 +2045,7 @@ zoom(const Arg *arg) { int main(int argc, char *argv[]) { if(argc == 2 && !strcmp("-v", argv[1])) - die("dwm-"VERSION", © 2006-2010 dwm engineers, see LICENSE for details\n"); + die("dwm-"VERSION", © 2006-2011 dwm engineers, see LICENSE for details\n"); else if(argc != 1) die("usage: dwm [-v]\n"); if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())