summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma2015-12-19 20:25:26 +0100
committerHiltjo Posthuma2015-12-19 20:25:26 +0100
commit642510033264014f39d927e2f6deecd3c203c4f5 (patch)
tree219338bcedd3361b9b4329e4ccf4876a9333d621
parente40818b412324447a8c676d210e18b506c915428 (diff)
downloadaur-642510033264014f39d927e2f6deecd3c203c4f5.tar.gz
fix fullscreen clients not resized on X display resolution change
patch provided by Bert M√ľnnich <ber.t_AT_posteo.de>, thanks!
-rw-r--r--dwm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 0362114f569..ff7e096f61f 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);
}