summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-05-03 16:09:05 +0200
committerbakkeby <[email protected]>2020-05-03 16:09:05 +0200
commit75d5f1e0c5140bb97ebb77db66462d7a86da9450 (patch)
treebd0dc2ef67b543402b885df8115a266755b4c3f4 /patch
parent657988fbbf2825e303dd0fe107a142a89933a897 (diff)
downloaddwm-flexipatch-75d5f1e0c5140bb97ebb77db66462d7a86da9450.tar.gz
dwm-flexipatch-75d5f1e0c5140bb97ebb77db66462d7a86da9450.zip
Adding shiftview patch
Diffstat (limited to 'patch')
-rw-r--r--patch/include.c3
-rw-r--r--patch/include.h3
-rw-r--r--patch/shiftview.c4
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
+}