applied Martin Hurton's checkotherwm simplification 9a4d07d9
Anselm R Garbe · 2008-09-06 08:59 1 file(s) · +3 −4
dwm.c +3 −4
337 337
void
338 338
checkotherwm(void) {
339 339
	otherwm = False;
340 -
	XSetErrorHandler(xerrorstart);
340 +
	xerrorxlib = XSetErrorHandler(xerrorstart);
341 341
342 342
	/* this causes an error if some other window manager is running */
343 343
	XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask);
344 344
	XSync(dpy, False);
345 345
	if(otherwm)
346 346
		die("dwm: another window manager is already running\n");
347 -
	XSetErrorHandler(NULL);
348 -
	xerrorxlib = XSetErrorHandler(xerror);
347 +
	XSetErrorHandler(xerror);
349 348
	XSync(dpy, False);
350 349
}
351 350
1625 1624
	else
1626 1625
		c->maxa = c->mina = 0.0;
1627 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
1631 1630
void