Allows attach below to be toggled

keyboard
Jonathan Hodgson 5 years ago
parent 7568ea3f87
commit 362b95a5b9
  1. 2
      config.def.h
  2. 6
      dwm.c

@ -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 */

@ -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…
Cancel
Save