mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02: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 {
|
||||
shifted.ui = (shifted.ui << arg->i)
|
||||
| (shifted.ui >> (NUMTAGS - arg->i));
|
||||
#if SCRATCHPADS_PATCH
|
||||
shifted.ui &= ~SPTAGMASK;
|
||||
#endif // SCRATCHPADS_PATCH
|
||||
} while (tagmask && !(shifted.ui & tagmask));
|
||||
else // right circular shift
|
||||
do {
|
||||
shifted.ui = (shifted.ui >> (- arg->i)
|
||||
| shifted.ui << (NUMTAGS + arg->i));
|
||||
#if SCRATCHPADS_PATCH
|
||||
shifted.ui &= ~SPTAGMASK;
|
||||
#endif // SCRATCHPADS_PATCH
|
||||
} while (tagmask && !(shifted.ui & tagmask));
|
||||
|
||||
view(&shifted);
|
||||
|
Loading…
Reference in New Issue
Block a user