From 8e154f66b15b520ae63b08189e6f1aa0995d4bd3 Mon Sep 17 00:00:00 2001 From: Dejan Kutle Date: Fri, 7 Oct 2022 23:01:01 +0200 Subject: [PATCH] fix shifttag bug shifttag to right used to shift the window in to the scratchpad --- shiftview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } +