applied Martin Hurton's checkotherwm simplification
Anselm R Garbe garbeam@gmail.com
Sat, 06 Sep 2008 08:59:51 +0100
1 files changed,
3 insertions(+),
4 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -337,15 +337,14 @@
void checkotherwm(void) { otherwm = False; - XSetErrorHandler(xerrorstart); + xerrorxlib = XSetErrorHandler(xerrorstart); /* this causes an error if some other window manager is running */ XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask); XSync(dpy, False); if(otherwm) die("dwm: another window manager is already running\n"); - XSetErrorHandler(NULL); - xerrorxlib = XSetErrorHandler(xerror); + XSetErrorHandler(xerror); XSync(dpy, False); }@@ -1625,7 +1624,7 @@ }
else c->maxa = c->mina = 0.0; c->isfixed = (c->maxw && c->minw && c->maxh && c->minh - && c->maxw == c->minw && c->maxh == c->minh); + && c->maxw == c->minw && c->maxh == c->minh); } void