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
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}