Re: [dev] [dwm] Fullscreen clients not resized on X display resolution change

From: <noname_AT_inventati.org>
Date: Mon, 16 Nov 2015 05:27:35 +0300

On Tue, Oct 13, 2015 at 10:12:36AM +0200, Bert Münnich wrote:
> On 12.10.15, Chris Down wrote:
> > I took a quick look at the code, but I didn't see any obvious reason
> > for this. I will look a bit further and supply a patch if I work it
> > out, but if anyone else has any ideas I'd be glad to hear them.
>
> The attached patch fixes the problem.
>
> Enjoy,
> Bert

> diff --git a/dwm.c b/dwm.c
> index 169adcb..020d418 100644
> --- a/dwm.c
> +++ b/dwm.c
> _AT_@ -554,6 +554,7 @@ configure(Client *c) {
>
> void
> configurenotify(XEvent *e) {
> + Client *c;
> Monitor *m;
> XConfigureEvent *ev = &e->xconfigure;
> Bool dirty;
> _AT_@ -566,8 +567,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);
> }

Will the patch is not added to mainline? I think it is a bugfix that
everyone can benefit from.
Received on Mon Nov 16 2015 - 03:27:35 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 16 2015 - 03:36:09 CET