fix shifttag bug

shifttag to right used to shift
the window in to the scratchpad
This commit is contained in:
Dejan Kutle 2022-10-07 23:01:01 +02:00
parent c9717918ee
commit 8e154f66b1
No known key found for this signature in database
GPG key ID: 909D771047A9F6D8

View file

@ -46,7 +46,7 @@ shifttag(const Arg *arg)
nextseltags = (curseltags << i) | (curseltags >> (LENGTH(tags) - i)); nextseltags = (curseltags << i) | (curseltags >> (LENGTH(tags) - i));
else // right circular shift else // right circular shift
nextseltags = curseltags >> (- i) | (curseltags << (LENGTH(tags) + i)); nextseltags = (curseltags >> - i) | (curseltags << (LENGTH(tags) + i));
// Check if tag is visible // Check if tag is visible
for (c = selmon->clients; c && !visible; c = c->next) for (c = selmon->clients; c && !visible; c = c->next)
@ -62,3 +62,4 @@ shifttag(const Arg *arg)
tag(&a); tag(&a);
} }
} }