[hackers] [dwm] fix fullscreen clients not resized on X display resolution change || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 19 Dec 2015 20:26:57 +0100 (CET)

commit 3465bed290abc62cb2e69a8096084ba6b8eb4956
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Dec 19 20:25:26 2015 +0100
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Dec 19 20:25:26 2015 +0100

    fix fullscreen clients not resized on X display resolution change
    
    patch provided by Bert Münnich <ber.t_AT_posteo.de>, thanks!

diff --git a/dwm.c b/dwm.c
index 0362114..ff7e096 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -565,6 +565,7 @@ void
 configurenotify(XEvent *e)
 {
         Monitor *m;
+ Client *c;
         XConfigureEvent *ev = &e->xconfigure;
         int dirty;
 
_AT_@ -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);
                 }
Received on Sat Dec 19 2015 - 20:26:57 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 19 2015 - 20:36:19 CET