summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patch/centeredfloatingmaster.c6
-rw-r--r--patch/flextile-deluxe.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/patch/centeredfloatingmaster.c b/patch/centeredfloatingmaster.c
index 4ceedeb..80168ef 100644
--- a/patch/centeredfloatingmaster.c
+++ b/patch/centeredfloatingmaster.c
@@ -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
diff --git a/patch/flextile-deluxe.c b/patch/flextile-deluxe.c
index f336e27..2b579e7 100644
--- a/patch/flextile-deluxe.c
+++ b/patch/flextile-deluxe.c
@@ -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);
}