aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-12-19 20:25:26 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-12-19 20:25:26 +0100
commit3465bed290abc62cb2e69a8096084ba6b8eb4956 (patch)
tree21ec78f0d7adeaf2f42e96afa5ca1e67a2b6fff1 /dwm.c
parent4ec3a673ff81275a9157d6801ea4a2b17031e5ba (diff)
downloaddwm-3465bed290abc62cb2e69a8096084ba6b8eb4956.tar.gz
dwm-3465bed290abc62cb2e69a8096084ba6b8eb4956.tar.bz2
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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 0362114..ff7e096 100644
--- a/dwm.c
+++ b/dwm.c
@@ -565,6 +565,7 @@ void
configurenotify(XEvent *e)
{
Monitor *m;
+ Client *c;
XConfigureEvent *ev = &e->xconfigure;
int dirty;
@@ -576,8 +577,12 @@ configurenotify(XEvent *e)
if (updategeom() || dirty) {
drw_resize(drw, sw, bh);
updatebars();
- for (m = mons; m; m = m->next)
+ for (m = mons; m; m = m->next) {
+ for (c = m->clients; c; c = c->next)
+ if (c->isfullscreen)
+ resizeclient(c, m->mx, m->my, m->mw, m->mh);
XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
+ }
focus(NULL);
arrange(NULL);
}