diff options
author | julian T <julian@jtle.dk> | 2019-01-28 12:42:17 +0100 |
---|---|---|
committer | julian T <julian@jtle.dk> | 2019-01-28 12:42:17 +0100 |
commit | 7e5f1a57aa53e8b49bf53f4e038fae5e26c4b456 (patch) | |
tree | 2ee2633b2db91075bf3b3b4c5290783b48a0b567 /config.h | |
parent | 67949b8b32c6ccadf689097221e375cd2c221c7f (diff) |
Added single-tagset patch
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,5 @@ /* See LICENSE file for copyright and license details. */ #include <X11/XF86keysym.h> -#include "bstack.c" /* appearance */ static const char *fonts[] = { @@ -53,8 +52,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 +61,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); } @@ -74,7 +73,6 @@ static const Layout layouts[] = { { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "]Z[", zen }, - { "TTT", bstack }, }; /* key definitions */ @@ -105,6 +103,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 } }, |