Browse Source

applied Connor's subwindow patch

master
Anselm R Garbe 14 years ago
parent
commit
052ffae192
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      dmenu.c

+ 5
- 1
dmenu.c 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,7 +804,8 @@ main(int argc, char *argv[]) {
if(!(dpy = XOpenDisplay(NULL)))
eprint("dmenu: cannot open display\n");
screen = DefaultScreen(dpy);
root = RootWindow(dpy, screen);
if(!root)
root = RootWindow(dpy, screen);
if(isatty(STDIN_FILENO)) {
readstdin();


Loading…
Cancel
Save