mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Bug failing to close the last window using the centered floating master layout, ref. #20
This commit is contained in:
parent
ceed6813d3
commit
52db51175b
@ -78,8 +78,10 @@ centeredfloatingmaster(Monitor *m)
|
|||||||
#else
|
#else
|
||||||
mx += WIDTH(c);
|
mx += WIDTH(c);
|
||||||
#endif
|
#endif
|
||||||
detachstack(c);
|
if (n > 1) {
|
||||||
attachstack(c);
|
detachstack(c);
|
||||||
|
attachstack(c);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/* stack clients are stacked horizontally */
|
/* stack clients are stacked horizontally */
|
||||||
#if CFACTS_PATCH
|
#if CFACTS_PATCH
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
typedef struct {
|
atypedef struct {
|
||||||
void (*arrange)(Monitor *, int, int, int, int, int, int, int);
|
void (*arrange)(Monitor *, int, int, int, int, int, int, int);
|
||||||
} LayoutArranger;
|
} 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;
|
y = y + (h - mh) / 2;
|
||||||
|
|
||||||
(&flextiles[m->ltaxis[MASTER]])->arrange(m, x, y, mh, mw, ih, iv, n, m->nmaster, 0);
|
(&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);
|
restack(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user