mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
Always swap regions when using rg_move_next/rg_move_prev
Fixes interaction with the option workspace_clamp
This commit is contained in:
parent
7a7a5aa571
commit
a77860696e
1 changed files with 2 additions and 3 deletions
|
@ -4166,8 +4166,6 @@ switchws(struct binding *bp, struct swm_region *r, union arg *args)
|
|||
int wsid = args->id;
|
||||
bool unmap_old = false;
|
||||
|
||||
(void)bp;
|
||||
|
||||
if (!(r && r->s))
|
||||
return;
|
||||
|
||||
|
@ -4187,7 +4185,8 @@ switchws(struct binding *bp, struct swm_region *r, union arg *args)
|
|||
return;
|
||||
|
||||
other_r = new_ws->r;
|
||||
if (other_r && workspace_clamp) {
|
||||
if (other_r && workspace_clamp &&
|
||||
bp->action != FN_RG_MOVE_NEXT && bp->action != FN_RG_MOVE_PREV) {
|
||||
DNPRINTF(SWM_D_WS, "switchws: ws clamped.\n");
|
||||
|
||||
if (warp_focus) {
|
||||
|
|
Loading…
Add table
Reference in a new issue