diff --git a/config.c b/config.c index 68948b15..18c5de39 100644 --- a/config.c +++ b/config.c @@ -497,12 +497,7 @@ get_numlockmask(Display *disp) static unsigned long initcolor(Display *disp, int scr, const char *colstr) { - Colormap cmap; - /* bypass screen if scr is a Xinerama screen number */ - if(XineramaIsActive(disp)) - cmap = DefaultColormap(disp, DefaultScreen(disp)); - else - cmap = DefaultColormap(disp, scr); + Colormap cmap = DefaultColormap(disp, get_real_screen(disp, scr)); XColor color; if(!XAllocNamedColor(disp, cmap, colstr, &color, &color)) die("awesome: error, cannot allocate color '%s'\n", colstr);