Added pertag patch

This commit is contained in:
bakkeby
2019-09-05 22:58:16 +02:00
parent cba0991170
commit 591caea975
5 changed files with 150 additions and 9 deletions

View File

@@ -2,6 +2,10 @@
#include "alpha.c"
#endif
#if PERTAG_PATCH
#include "pertag.c"
#endif
#if SYSTRAY_PATCH
#include "systray.c"
#endif

11
patch/pertag.c Normal file
View File

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