changeset: 1354:dced80b409d8
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Sat Sep 06 08:59:51 2008 +0100
files: dwm.c
description:
applied Martin Hurton's checkotherwm simplification
diff -r 8a9a1dbeff49 -r dced80b409d8 dwm.c
--- a/dwm.c Tue Sep 02 22:36:06 2008 +0100
+++ b/dwm.c Sat Sep 06 08:59:51 2008 +0100
@@ -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
Received on Sat Sep 06 2008 - 08:21:38 UTC
This archive was generated by hypermail 2.2.0 : Sat Sep 06 2008 - 08:24:04 UTC