diff options
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/alternativetags.c | 6 | ||||
| -rw-r--r-- | patch/alternativetags.h | 1 | ||||
| -rw-r--r-- | patch/include.c | 4 | ||||
| -rw-r--r-- | patch/include.h | 4 |
4 files changed, 15 insertions, 0 deletions
diff --git a/patch/alternativetags.c b/patch/alternativetags.c new file mode 100644 index 0000000..3c329bc --- /dev/null +++ b/patch/alternativetags.c @@ -0,0 +1,6 @@ +void +togglealttag() +{ + selmon->alttag = !selmon->alttag; + drawbar(selmon); +}
\ No newline at end of file diff --git a/patch/alternativetags.h b/patch/alternativetags.h new file mode 100644 index 0000000..2c130f3 --- /dev/null +++ b/patch/alternativetags.h @@ -0,0 +1 @@ +static void togglealttag();
\ No newline at end of file diff --git a/patch/include.c b/patch/include.c index 9987be0..04d66f4 100644 --- a/patch/include.c +++ b/patch/include.c @@ -4,6 +4,10 @@ #include "alpha.c" #endif +#if ALTERNATIVE_TAGS_PATCH +#include "alternativetags.c" +#endif + #if ATTACHABOVE_PATCH || ATTACHASIDE_PATCH || ATTACHBELOW_PATCH || ATTACHBOTTOM_PATCH #include "attachx.c" #endif diff --git a/patch/include.h b/patch/include.h index 7912b30..f76f6f1 100644 --- a/patch/include.h +++ b/patch/include.h @@ -4,6 +4,10 @@ #include "alpha.h" #endif +#if ALTERNATIVE_TAGS_PATCH +#include "alternativetags.h" +#endif + #if ATTACHABOVE_PATCH || ATTACHASIDE_PATCH || ATTACHBELOW_PATCH || ATTACHBOTTOM_PATCH #include "attachx.h" #endif |
