Skip to content

Commit

Permalink
when selfont is configured, make sure we continue and configure the rest
Browse files Browse the repository at this point in the history
of the screen (quick fix); discovered the hard way by Rodrigo Mosconi.
  • Loading branch information
okan committed Jun 20, 2013
1 parent 234b821 commit 7004700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ conf_screen(struct screen_ctx *sc)
}
}
if (i == CWM_COLOR_MAX)
return;
goto out;

xu_xorcolor(sc->xftcolor[CWM_COLOR_MENU_BG],
sc->xftcolor[CWM_COLOR_MENU_FG], &xc);
xu_xorcolor(sc->xftcolor[CWM_COLOR_MENU_FONT], xc, &xc);
if (!XftColorAllocValue(X_Dpy, sc->visual, sc->colormap,
&xc.color, &sc->xftcolor[CWM_COLOR_MENU_FONT_SEL]))
warnx("XftColorAllocValue: '%s'", Conf.color[i]);

out:
sc->menuwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
Conf.bwidth,
sc->xftcolor[CWM_COLOR_MENU_FG].pixel,
Expand Down

0 comments on commit 7004700

Please sign in to comment.