applied Connor's subwindow patch

This commit is contained in:
Anselm R Garbe 2010-03-31 22:43:49 +01:00
parent eededaa76f
commit 052ffae192

View File

@ -768,6 +768,9 @@ main(int argc, char *argv[]) {
}
else if(!strcmp(argv[i], "-b"))
topbar = False;
else if(!strcmp(argv[i], "-e")) {
if(++i < argc) root = atoi(argv[i]);
}
else if(!strcmp(argv[i], "-l")) {
vlist = True;
calcoffsets = calcoffsetsv;
@ -801,6 +804,7 @@ main(int argc, char *argv[]) {
if(!(dpy = XOpenDisplay(NULL)))
eprint("dmenu: cannot open display\n");
screen = DefaultScreen(dpy);
if(!root)
root = RootWindow(dpy, screen);
if(isatty(STDIN_FILENO)) {