Mercurial > dwm-meillo
comparison main.c @ 197:c13f374f836c
slight fix
author | arg@10ksloc.org |
---|---|
date | Sat, 05 Aug 2006 13:10:09 +0200 |
parents | 56fee1dc9d53 |
children | 81498863dc30 |
comparison
equal
deleted
inserted
replaced
196:d560e796f7fe | 197:c13f374f836c |
---|---|
176 else if(argc != 1) | 176 else if(argc != 1) |
177 eprint("usage: dwm [-v]\n"); | 177 eprint("usage: dwm [-v]\n"); |
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 |
193 if(otherwm) | 192 if(otherwm) |
194 eprint("dwm: another window manager is already running\n"); | 193 eprint("dwm: another window manager is already running\n"); |