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 /dwm.c | |
| parent | applied Peter Hartlichs aspect revert fix (diff) | |
| download | dwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.tar.gz dwm-9a4d07d9de31c7bf3fba83c66d1a09d63848adfc.zip | |
applied Martin Hurton's checkotherwm simplification
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -337,15 +337,14 @@ buttonpress(XEvent *e) { | |||
| 337 | void | 337 | void |
| 338 | checkotherwm(void) { | 338 | checkotherwm(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 | ||
| 1631 | void | 1630 | void |
