diff options
| author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-12-19 20:25:26 +0100 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-12-19 20:25:26 +0100 |
| commit | 3465bed290abc62cb2e69a8096084ba6b8eb4956 (patch) | |
| tree | 21ec78f0d7adeaf2f42e96afa5ca1e67a2b6fff1 /dwm.c | |
| parent | Shut up glibc about _BSD_SOURCE being deprecated (diff) | |
| download | dwm-3465bed290abc62cb2e69a8096084ba6b8eb4956.tar.gz dwm-3465bed290abc62cb2e69a8096084ba6b8eb4956.zip | |
fix fullscreen clients not resized on X display resolution change
patch provided by Bert Münnich <ber.t_AT_posteo.de>, thanks!
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -565,6 +565,7 @@ void | |||
| 565 | configurenotify(XEvent *e) | 565 | configurenotify(XEvent *e) |
| 566 | { | 566 | { |
| 567 | Monitor *m; | 567 | Monitor *m; |
| 568 | Client *c; | ||
| 568 | XConfigureEvent *ev = &e->xconfigure; | 569 | XConfigureEvent *ev = &e->xconfigure; |
| 569 | int dirty; | 570 | int dirty; |
| 570 | 571 | ||
| @@ -576,8 +577,12 @@ configurenotify(XEvent *e) | |||
| 576 | if (updategeom() || dirty) { | 577 | if (updategeom() || dirty) { |
| 577 | drw_resize(drw, sw, bh); | 578 | drw_resize(drw, sw, bh); |
| 578 | updatebars(); | 579 | updatebars(); |
| 579 | for (m = mons; m; m = m->next) | 580 | for (m = mons; m; m = m->next) { |
| 581 | for (c = m->clients; c; c = c->next) | ||
| 582 | if (c->isfullscreen) | ||
| 583 | resizeclient(c, m->mx, m->my, m->mw, m->mh); | ||
| 580 | XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); | 584 | XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); |
| 585 | } | ||
| 581 | focus(NULL); | 586 | focus(NULL); |
| 582 | arrange(NULL); | 587 | arrange(NULL); |
| 583 | } | 588 | } |
