diff options
| -rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -178,15 +178,14 @@ main(int argc, char *argv[]) | |||
| 178 | 178 | ||
| 179 | dpy = XOpenDisplay(0); | 179 | dpy = XOpenDisplay(0); |
| 180 | if(!dpy) | 180 | if(!dpy) |
| 181 | eprint("dwm: cannot connect X server\n"); | 181 | eprint("dwm: cannot open display\n"); |
| 182 | 182 | ||
| 183 | screen = DefaultScreen(dpy); | 183 | screen = DefaultScreen(dpy); |
| 184 | root = RootWindow(dpy, screen); | 184 | root = RootWindow(dpy, screen); |
| 185 | 185 | ||
| 186 | /* check if another WM is already running */ | ||
| 187 | otherwm = False; | 186 | otherwm = False; |
| 188 | XSetErrorHandler(xerrorstart); | 187 | XSetErrorHandler(xerrorstart); |
| 189 | /* this causes an error if some other WM is running */ | 188 | /* this causes an error if some other window manager is running */ |
| 190 | XSelectInput(dpy, root, SubstructureRedirectMask); | 189 | XSelectInput(dpy, root, SubstructureRedirectMask); |
| 191 | XSync(dpy, False); | 190 | XSync(dpy, False); |
| 192 | 191 | ||
