fix fullscreen clients not resized on X display resolution change 3465bed2
patch provided by Bert Münnich <ber.t_AT_posteo.de>, thanks!
Hiltjo Posthuma · 2015-12-19 20:25 1 file(s) · +6 −1
dwm.c +6 −1
565 565
configurenotify(XEvent *e)
566 566
{
567 567
	Monitor *m;
568 +
	Client *c;
568 569
	XConfigureEvent *ev = &e->xconfigure;
569 570
	int dirty;
570 571
576 577
		if (updategeom() || dirty) {
577 578
			drw_resize(drw, sw, bh);
578 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 584
				XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
585 +
			}
581 586
			focus(NULL);
582 587
			arrange(NULL);
583 588
		}