diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-09-06 08:59:51 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-09-06 08:59:51 +0100 |
commit | 9a4d07d9de31c7bf3fba83c66d1a09d63848adfc (patch) | |
tree | e5acb2bd054a6a6dce72cbab3def80cc3da2604d | |
parent | 30410108eb7e9e8b977d448f611659d58b2a6992 (diff) | |
download | dwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.tar dwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.tar.gz dwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.tar.bz2 |
applied Martin Hurton's checkotherwm simplification
-rw-r--r-- | dwm.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -337,15 +337,14 @@ buttonpress(XEvent *e) { 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 @@ updatesizehints(Client *c) { 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 |