diff options
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/dwmc.c | 14 | ||||
| -rw-r--r-- | patch/dwmc.h | 4 | ||||
| -rw-r--r-- | patch/tagothermonitor.c | 14 | ||||
| -rw-r--r-- | patch/tagothermonitor.h | 5 |
4 files changed, 19 insertions, 18 deletions
diff --git a/patch/dwmc.c b/patch/dwmc.c index 5b1c5e4..065e64d 100644 --- a/patch/dwmc.c +++ b/patch/dwmc.c @@ -40,20 +40,6 @@ tagallex(const Arg *arg) tag(&((Arg){.ui = ~0})); } -#if TAGOTHERMONITOR_PATCH -void -tagnextmonex(const Arg *arg) -{ - tagnextmon(&((Arg) { .ui = 1 << arg->ui })); -} - -void -tagprevmonex(const Arg *arg) -{ - tagprevmon(&((Arg) { .ui = 1 << arg->ui })); -} -#endif - int fake_signal(void) { diff --git a/patch/dwmc.h b/patch/dwmc.h index c30cdaf..4fb0405 100644 --- a/patch/dwmc.h +++ b/patch/dwmc.h @@ -10,8 +10,4 @@ static void toggleviewex(const Arg *arg); static void tagex(const Arg *arg); static void toggletagex(const Arg *arg); static void tagallex(const Arg *arg); -#if TAGOTHERMONITOR_PATCH -static void tagnextmonex(const Arg *arg); -static void tagprevmonex(const Arg *arg); -#endif static int fake_signal(void); diff --git a/patch/tagothermonitor.c b/patch/tagothermonitor.c index 6f39212..4572c88 100644 --- a/patch/tagothermonitor.c +++ b/patch/tagothermonitor.c @@ -1,3 +1,17 @@ +#if DWMC_PATCH +void +tagnextmonex(const Arg *arg) +{ + tagnextmon(&((Arg) { .ui = 1 << arg->ui })); +} + +void +tagprevmonex(const Arg *arg) +{ + tagprevmon(&((Arg) { .ui = 1 << arg->ui })); +} +#endif // DWMC_PATCH + void tagnextmon(const Arg *arg) { diff --git a/patch/tagothermonitor.h b/patch/tagothermonitor.h index 44258bc..5cc033f 100644 --- a/patch/tagothermonitor.h +++ b/patch/tagothermonitor.h @@ -1,3 +1,8 @@ +#if DWMC_PATCH +static void tagnextmonex(const Arg *arg); +static void tagprevmonex(const Arg *arg); +#endif // DWMC_PATCH + static void tagnextmon(const Arg *arg); static void tagprevmon(const Arg *arg); static void tagothermon(const Arg *arg, int dir); |
