about summary refs log tree commit diff stats
diff options
context:
space:
mode:
author2022-10-07 23:01:01 +0200
committer2022-10-07 23:01:01 +0200
commit8e154f66b15b520ae63b08189e6f1aa0995d4bd3 (patch)
tree79bf7bf3b53d5543e84f00449e90365e683f6011
parentc9717918eeb71c9599aadb8f96316a87030d0218 (diff)
downloaddwm-8e154f66b15b520ae63b08189e6f1aa0995d4bd3.tar.gz
-rw-r--r--shiftview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shiftview.c b/shiftview.c
index 3d2706b..bb43969 100644
--- a/shiftview.c
+++ b/shiftview.c
@@ -46,7 +46,7 @@ shifttag(const Arg *arg)
 			nextseltags = (curseltags << i) | (curseltags >> (LENGTH(tags) - i));
 
 		else // right circular shift
-			nextseltags = curseltags >> (- i) | (curseltags << (LENGTH(tags) + i));
+			nextseltags = (curseltags >> - i) | (curseltags << (LENGTH(tags) + i));
 
                 // Check if tag is visible
 		for (c = selmon->clients; c && !visible; c = c->next)
@@ -62,3 +62,4 @@ shifttag(const Arg *arg)
 		tag(&a);
 	}
 }
+