diff options
| author | Bakkeby <[email protected]> | 2022-05-08 21:43:57 +0200 |
|---|---|---|
| committer | Bakkeby <[email protected]> | 2022-05-08 21:43:57 +0200 |
| commit | c553f93b528449ed2e7d4b424f063ef3c1d3d8f6 (patch) | |
| tree | 8b9ef0a384c69d6a2e11a304050ea86dc74c9ce4 /patch/shiftview.c | |
| parent | 2ecc15a2ef8ab45d49cbf261cb3280fe9ab3d058 (diff) | |
| download | dwm-flexipatch-c553f93b528449ed2e7d4b424f063ef3c1d3d8f6.tar.gz dwm-flexipatch-c553f93b528449ed2e7d4b424f063ef3c1d3d8f6.zip | |
shiftview + scrachpads compatibility
Diffstat (limited to 'patch/shiftview.c')
| -rw-r--r-- | patch/shiftview.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patch/shiftview.c b/patch/shiftview.c index 423d74b..b9c811a 100644 --- a/patch/shiftview.c +++ b/patch/shiftview.c @@ -8,12 +8,12 @@ shiftview(const Arg *arg) unsigned int seltagset = selmon->tagset[selmon->seltags]; #endif // SCRATCHPADS_PATCH if (arg->i > 0) // left circular shift - shifted.ui = (seltagset << arg->i) - | (seltagset >> (NUMTAGS - arg->i)); + shifted.ui = (seltagset << arg->i) | (seltagset >> (NUMTAGS - arg->i)); else // right circular shift - shifted.ui = seltagset >> -arg->i - | seltagset << (NUMTAGS + arg->i); + shifted.ui = (seltagset >> -arg->i) | (seltagset << (NUMTAGS + arg->i)); + #if SCRATCHPADS_PATCH + shifted.ui &= ~SPTAGMASK; + #endif // SCRATCHPADS_PATCH view(&shifted); } - |
