applied Connor's subwindow patch
This commit is contained in:
parent
eededaa76f
commit
052ffae192
4
dmenu.c
4
dmenu.c
|
@ -768,6 +768,9 @@ main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
else if(!strcmp(argv[i], "-b"))
|
else if(!strcmp(argv[i], "-b"))
|
||||||
topbar = False;
|
topbar = False;
|
||||||
|
else if(!strcmp(argv[i], "-e")) {
|
||||||
|
if(++i < argc) root = atoi(argv[i]);
|
||||||
|
}
|
||||||
else if(!strcmp(argv[i], "-l")) {
|
else if(!strcmp(argv[i], "-l")) {
|
||||||
vlist = True;
|
vlist = True;
|
||||||
calcoffsets = calcoffsetsv;
|
calcoffsets = calcoffsetsv;
|
||||||
|
@ -801,6 +804,7 @@ main(int argc, char *argv[]) {
|
||||||
if(!(dpy = XOpenDisplay(NULL)))
|
if(!(dpy = XOpenDisplay(NULL)))
|
||||||
eprint("dmenu: cannot open display\n");
|
eprint("dmenu: cannot open display\n");
|
||||||
screen = DefaultScreen(dpy);
|
screen = DefaultScreen(dpy);
|
||||||
|
if(!root)
|
||||||
root = RootWindow(dpy, screen);
|
root = RootWindow(dpy, screen);
|
||||||
|
|
||||||
if(isatty(STDIN_FILENO)) {
|
if(isatty(STDIN_FILENO)) {
|
||||||
|
|
Loading…
Reference in New Issue