diff options
| author | arg@10ksloc.org <unknown> | 2006-08-05 13:10:09 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-05 13:10:09 +0200 |
| commit | 86d12249dd3b63c9312f3a938b20985abc2a3364 (patch) | |
| tree | 8d623c7f89ac2c2350e42846bc4eade03abbcb98 /main.c | |
| parent | small performance tweak ;) (diff) | |
| download | dwm-86d12249dd3b63c9312f3a938b20985abc2a3364.tar.gz dwm-86d12249dd3b63c9312f3a938b20985abc2a3364.zip | |
slight fix
Diffstat (limited to '')
| -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 | ||
