From: Yuri D'Elia Date: Sun, 1 May 2016 16:14:22 +0000 (+0200) Subject: Always swap regions when using rg_move_next/rg_move_prev X-Git-Tag: SPECTRWM_3_0_0~13 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/a77860696e9ca2b1f5184c9f3ff51daa50ac6123 Always swap regions when using rg_move_next/rg_move_prev Fixes interaction with the option workspace_clamp --- diff --git a/spectrwm.c b/spectrwm.c index 75df373..d3ea727 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -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) {