Bug failing to close the last window using the centered floating master layout, ref. #20

This commit is contained in:
bakkeby 2020-03-23 16:18:18 +01:00
parent ceed6813d3
commit 52db51175b
2 changed files with 7 additions and 4 deletions

View File

@ -78,8 +78,10 @@ centeredfloatingmaster(Monitor *m)
#else
mx += WIDTH(c);
#endif
detachstack(c);
attachstack(c);
if (n > 1) {
detachstack(c);
attachstack(c);
}
} else {
/* stack clients are stacked horizontally */
#if CFACTS_PATCH

View File

@ -1,4 +1,4 @@
typedef struct {
atypedef struct {
void (*arrange)(Monitor *, int, int, int, int, int, int, int);
} LayoutArranger;
@ -316,7 +316,8 @@ layout_floating_master_fixed(Monitor *m, int x, int y, int h, int w, int ih, int
y = y + (h - mh) / 2;
(&flextiles[m->ltaxis[MASTER]])->arrange(m, x, y, mh, mw, ih, iv, n, m->nmaster, 0);
reattachstack(m, m->nmaster, 0);
if (n > 1)
reattachstack(m, m->nmaster, 0);
restack(m);
}