fix crash on monitor size change
@@ -767,15 +767,13 @@ configurenotify(XEvent *e)
drw_resize(drw, sw, bh);
updatebars();
for (m = mons; m; m = m->next) {
- if (c->isfakefullscreen){
+ for (c = m->clients; c; c = c->next) {
+ if (c->isfakefullscreen)
XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
- }else{
- for (c = m->clients; c; c = c->next)
- if (c->isfullscreen)
+ else if (c->isfullscreen)
resizeclient(c, m->mx, m->my, m->mw, m->mh);
- resizebarwin(m);
}
-
+ resizebarwin(m);
}
focus(NULL);
arrange(NULL);
