Allows attach below to be toggled
This commit is contained in:
parent
7568ea3f87
commit
362b95a5b9
2 changed files with 7 additions and 1 deletions
|
@ -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
6
dwm.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue