summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/config.h b/config.h
index 4abd068..52f420a 100644
--- a/config.h
+++ b/config.h
@@ -53,8 +53,8 @@ static void zen(Monitor *m) {
unsigned int gh = m->wh * 0.5 * (m->mfact - zenAdd);
//Count clients
- for (c = m->clients; c; c = c->next)
- if (ISVISIBLE(c))
+ for (c = m->cl->clients; c; c = c->next)
+ if (ISVISIBLE(c, m))
n++;
if ( n > 0 ) {
@@ -62,7 +62,7 @@ static void zen(Monitor *m) {
}
//For each client c
- for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) {
+ for (i = 0, c = nexttiled(m->cl->clients, m); c; c = nexttiled(c->next, m), i++) {
//Resize til fuldscreen
resize(c, m->wx + gw + i * zenStackDist, m->wy + gh + i * zenStackDist, m->ww - 2 * c->bw - 2 * gw, m->wh - 2 * c->bw - 2 * gh, 0);
}
@@ -104,6 +104,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "st", NULL };
+#include "keepfloatingposition.c"
+
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },