Removing workaround to ensure that floating master stays on top, ref. #20

This commit is contained in:
bakkeby 2020-03-24 10:17:09 +01:00
parent becbb9bfbf
commit d17a306a94
3 changed files with 3 additions and 25 deletions

View File

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

View File

@ -1,4 +1,4 @@
atypedef struct {
typedef struct {
void (*arrange)(Monitor *, int, int, int, int, int, int, int);
} LayoutArranger;
@ -316,9 +316,6 @@ 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);
if (n > 1)
reattachstack(m, m->nmaster, 0);
restack(m);
}
static void
@ -669,16 +666,3 @@ incnstack(const Arg *arg)
#endif // PERTAG_PATCH
arrange(selmon);
}
void
reattachstack(Monitor *m, int an, int ai)
{
unsigned int i;
Client *c;
for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
if (i >= ai && i < (ai + an)) {
detachstack(c);
attachstack(c);
}
}

View File

@ -2,7 +2,6 @@ static void flextile(Monitor *m);
static void mirrorlayout(const Arg *arg);
static void rotatelayoutaxis(const Arg *arg);
static void incnstack(const Arg *arg);
static void reattachstack(Monitor *m, int ai, int an);
/* Symbol handlers */
static void setflexsymbols(Monitor *m, unsigned int n);