diff options
| author | bakkeby <[email protected]> | 2020-05-03 16:09:05 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-05-03 16:09:05 +0200 |
| commit | 75d5f1e0c5140bb97ebb77db66462d7a86da9450 (patch) | |
| tree | bd0dc2ef67b543402b885df8115a266755b4c3f4 /patch | |
| parent | 657988fbbf2825e303dd0fe107a142a89933a897 (diff) | |
| download | dwm-flexipatch-75d5f1e0c5140bb97ebb77db66462d7a86da9450.tar.gz dwm-flexipatch-75d5f1e0c5140bb97ebb77db66462d7a86da9450.zip | |
Adding shiftview patch
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/include.c | 3 | ||||
| -rw-r--r-- | patch/include.h | 3 | ||||
| -rw-r--r-- | patch/shiftview.c | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/patch/include.c b/patch/include.c index f3f71e4..098d3eb 100644 --- a/patch/include.c +++ b/patch/include.c @@ -105,6 +105,9 @@ #if SHIFTVIEW_PATCH #include "shiftview.c" #endif +#if SHIFTVIEW_CLIENTS_PATCH +#include "shiftviewclients.c" +#endif #if SORTSCREENS_PATCH #ifdef XINERAMA #include "sortscreens.c" diff --git a/patch/include.h b/patch/include.h index 2dad7f1..aa40071 100644 --- a/patch/include.h +++ b/patch/include.h @@ -108,6 +108,9 @@ #if SHIFTVIEW_PATCH #include "shiftview.h" #endif +#if SHIFTVIEW_CLIENTS_PATCH +#include "shiftviewclients.h" +#endif #if SORTSCREENS_PATCH #ifdef XINERAMA #include "sortscreens.h" diff --git a/patch/shiftview.c b/patch/shiftview.c index 7e1a7a0..65a3dd6 100644 --- a/patch/shiftview.c +++ b/patch/shiftview.c @@ -3,7 +3,7 @@ shiftview(const Arg *arg) { Arg shifted; - if(arg->i > 0) // left circular shift + if (arg->i > 0) // left circular shift shifted.ui = (selmon->tagset[selmon->seltags] << arg->i) | (selmon->tagset[selmon->seltags] >> (LENGTH(tags) - arg->i)); @@ -12,4 +12,4 @@ shiftview(const Arg *arg) | selmon->tagset[selmon->seltags] << (LENGTH(tags) + arg->i); view(&shifted); -}
\ No newline at end of file +} |
