summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-09-05 22:58:16 +0200
committerbakkeby <[email protected]>2019-09-05 22:58:16 +0200
commit591caea975327d912b0650dd7cbbf66329c40585 (patch)
treedd898b1273288220bb769805dd61feab3e2e8492 /patch
parentcba0991170279af11684066526e4e70abec20438 (diff)
downloaddwm-flexipatch-591caea975327d912b0650dd7cbbf66329c40585.tar.gz
dwm-flexipatch-591caea975327d912b0650dd7cbbf66329c40585.zip
Added pertag patch
Diffstat (limited to 'patch')
-rw-r--r--patch/include.c4
-rw-r--r--patch/pertag.c11
2 files changed, 15 insertions, 0 deletions
diff --git a/patch/include.c b/patch/include.c
index 67bbf91..811fadd 100644
--- a/patch/include.c
+++ b/patch/include.c
@@ -2,6 +2,10 @@
#include "alpha.c"
#endif
+#if PERTAG_PATCH
+#include "pertag.c"
+#endif
+
#if SYSTRAY_PATCH
#include "systray.c"
#endif
diff --git a/patch/pertag.c b/patch/pertag.c
new file mode 100644
index 0000000..818c7ab
--- /dev/null
+++ b/patch/pertag.c
@@ -0,0 +1,11 @@
+struct Pertag {
+ unsigned int curtag, prevtag; /* current and previous tag */
+ int nmasters[LENGTH(tags) + 1]; /* number of windows in master area */
+ float mfacts[LENGTH(tags) + 1]; /* mfacts per tag */
+ unsigned int sellts[LENGTH(tags) + 1]; /* selected layouts */
+ const Layout *ltidxs[LENGTH(tags) + 1][2]; /* matrix of tags and layouts indexes */
+ #if PERTAGBAR_PATCH
+ Bool showbars[LENGTH(tags) + 1]; /* display bar for the current tag */
+ #endif // PERTAGBAR_PATCH
+ Client *prevzooms[LENGTH(tags) + 1]; /* store zoom information */
+}; \ No newline at end of file