summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-05 13:10:09 +0200
committerarg@10ksloc.org <unknown>2006-08-05 13:10:09 +0200
commit86d12249dd3b63c9312f3a938b20985abc2a3364 (patch)
tree8d623c7f89ac2c2350e42846bc4eade03abbcb98 /main.c
parentsmall performance tweak ;) (diff)
downloaddwm-86d12249dd3b63c9312f3a938b20985abc2a3364.tar.gz
dwm-86d12249dd3b63c9312f3a938b20985abc2a3364.zip
slight fix
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 633966b..b1372d0 100644
--- a/main.c
+++ b/main.c
@@ -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