Allows attach below to be toggled

This commit is contained in:
Jonathan Hodgson 2019-06-02 15:11:57 +01:00
parent 7568ea3f87
commit 362b95a5b9
2 changed files with 7 additions and 1 deletions

View file

@ -35,7 +35,7 @@ static const Rule rules[] = {
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int attachbelow = 1; /* 1 means attach after the currently active window */
static int attachbelow = 1; /* 1 means attach after the currently active window */
static const Layout layouts[] = {
/* symbol arrange function */

6
dwm.c
View file

@ -148,6 +148,7 @@ static void arrange(Monitor *m);
static void arrangemon(Monitor *m);
static void attach(Client *c);
static void attachBelow(Client *c);
static void toggleAttachBelow();
static void attachstack(Client *c);
static void buttonpress(XEvent *e);
static void checkotherwm(void);
@ -422,6 +423,11 @@ attachBelow(Client *c)
}
void toggleAttachBelow()
{
attachbelow = !attachbelow;
}
void
attachstack(Client *c)
{