mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
shiftviewclients: fix for another scratchpads edge case ref. https://github.com/bakkeby/patches/issues/12
This commit is contained in:
parent
45d05c6c48
commit
7bfcd388f6
@ -25,11 +25,17 @@ shiftviewclients(const Arg *arg)
|
|||||||
do {
|
do {
|
||||||
shifted.ui = (shifted.ui << arg->i)
|
shifted.ui = (shifted.ui << arg->i)
|
||||||
| (shifted.ui >> (NUMTAGS - arg->i));
|
| (shifted.ui >> (NUMTAGS - arg->i));
|
||||||
|
#if SCRATCHPADS_PATCH
|
||||||
|
shifted.ui &= ~SPTAGMASK;
|
||||||
|
#endif // SCRATCHPADS_PATCH
|
||||||
} while (tagmask && !(shifted.ui & tagmask));
|
} while (tagmask && !(shifted.ui & tagmask));
|
||||||
else // right circular shift
|
else // right circular shift
|
||||||
do {
|
do {
|
||||||
shifted.ui = (shifted.ui >> (- arg->i)
|
shifted.ui = (shifted.ui >> (- arg->i)
|
||||||
| shifted.ui << (NUMTAGS + arg->i));
|
| shifted.ui << (NUMTAGS + arg->i));
|
||||||
|
#if SCRATCHPADS_PATCH
|
||||||
|
shifted.ui &= ~SPTAGMASK;
|
||||||
|
#endif // SCRATCHPADS_PATCH
|
||||||
} while (tagmask && !(shifted.ui & tagmask));
|
} while (tagmask && !(shifted.ui & tagmask));
|
||||||
|
|
||||||
view(&shifted);
|
view(&shifted);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user