summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorjulian T <julian@jtle.dk>2019-01-28 12:42:17 +0100
committerjulian T <julian@jtle.dk>2019-01-28 12:42:17 +0100
commit7e5f1a57aa53e8b49bf53f4e038fae5e26c4b456 (patch)
tree2ee2633b2db91075bf3b3b4c5290783b48a0b567 /config.h
parent67949b8b32c6ccadf689097221e375cd2c221c7f (diff)
Added single-tagset patch
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.h b/config.h
index 07c5ea3..50c6d1d 100644
--- a/config.h
+++ b/config.h
@@ -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 } },