summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-09-06 08:59:51 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-09-06 08:59:51 +0100
commit9a4d07d9de31c7bf3fba83c66d1a09d63848adfc (patch)
treee5acb2bd054a6a6dce72cbab3def80cc3da2604d /dwm.c
parentapplied Peter Hartlichs aspect revert fix (diff)
downloaddwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.tar.gz
dwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.zip
applied Martin Hurton's checkotherwm simplification
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index 4ed5760..e7804dc 100644
--- a/dwm.c
+++ b/dwm.c
@@ -337,15 +337,14 @@ buttonpress(XEvent *e) {
337void 337void
338checkotherwm(void) { 338checkotherwm(void) {
339 otherwm = False; 339 otherwm = False;
340 XSetErrorHandler(xerrorstart); 340 xerrorxlib = XSetErrorHandler(xerrorstart);
341 341
342 /* this causes an error if some other window manager is running */ 342 /* this causes an error if some other window manager is running */
343 XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask); 343 XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask);
344 XSync(dpy, False); 344 XSync(dpy, False);
345 if(otherwm) 345 if(otherwm)
346 die("dwm: another window manager is already running\n"); 346 die("dwm: another window manager is already running\n");
347 XSetErrorHandler(NULL); 347 XSetErrorHandler(xerror);
348 xerrorxlib = XSetErrorHandler(xerror);
349 XSync(dpy, False); 348 XSync(dpy, False);
350} 349}
351 350
@@ -1625,7 +1624,7 @@ updatesizehints(Client *c) {
1625 else 1624 else
1626 c->maxa = c->mina = 0.0; 1625 c->maxa = c->mina = 0.0;
1627 c->isfixed = (c->maxw && c->minw && c->maxh && c->minh 1626 c->isfixed = (c->maxw && c->minw && c->maxh && c->minh
1628 && c->maxw == c->minw && c->maxh == c->minh); 1627 && c->maxw == c->minw && c->maxh == c->minh);
1629} 1628}
1630 1629
1631void 1630void