XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
ban(c);
XMapWindow(dpy, c->win);
+ setclientstate(c, NormalState);
arrange();
}
# dwm version
-VERSION = 4.4
+VERSION = 4.4.1
# Customize below to fit your system
Toggle between tiled and floating layout (affects all windows).
.TP
.B Mod1\-Shift\-space
-Toggle focused window between tiled and floating state (tiled layout only).
+Toggle focused window between tiled and floating state.
.TP
.B Mod1\-[1..n]
View all windows with
void
togglefloating(const char *arg) {
- if(!sel || isfloating())
+ if(!sel)
return;
sel->isfloating = !sel->isfloating;
if(sel->isfloating)
nx = wax;
ny = way;
- for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) {
+ for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next), i++) {
c->ismax = False;
if(i == 0) { /* master */
nw = mw - 2 * c->border;
resize(c, nx, ny, nw, nh, False);
if(n > 1 && th != wah)
ny += nh + 2 * c->border;
- i++;
}
}