This is useful in multi monitor setup, if you have workspace 1 on left
and workspace 2 on right monitor, trying to switch from 1 to 2 on left
region now does nothing.
This option can be enabled in combination with warp_pointer to send the
mouse pointer on the non-swapped workspace.
int font_adjusted = 0;
unsigned int mod_key = MODKEY;
bool warp_pointer = false;
int font_adjusted = 0;
unsigned int mod_key = MODKEY;
bool warp_pointer = false;
+bool visible_noswap = false;
/* dmenu search */
struct swm_region *search_r;
/* dmenu search */
struct swm_region *search_r;
old_ws->r = NULL;
unmap_old = true;
} else {
old_ws->r = NULL;
unmap_old = true;
} else {
+ if (visible_noswap) {
+ center_pointer(other_r);
+ return;
+ }
+
/* the other ws is visible in another region, exchange them */
other_r->ws_prior = new_ws;
other_r->ws = old_ws;
/* the other ws is visible in another region, exchange them */
other_r->ws_prior = new_ws;
other_r->ws = old_ws;
SWM_S_URGENT_COLLAPSE,
SWM_S_URGENT_ENABLED,
SWM_S_VERBOSE_LAYOUT,
SWM_S_URGENT_COLLAPSE,
SWM_S_URGENT_ENABLED,
SWM_S_VERBOSE_LAYOUT,
SWM_S_WARP_POINTER,
SWM_S_WINDOW_CLASS_ENABLED,
SWM_S_WINDOW_INSTANCE_ENABLED,
SWM_S_WARP_POINTER,
SWM_S_WINDOW_CLASS_ENABLED,
SWM_S_WINDOW_INSTANCE_ENABLED,
layouts[i].l_string = plain_stacker;
}
break;
layouts[i].l_string = plain_stacker;
}
break;
+ case SWM_S_VISIBLE_NOSWAP:
+ visible_noswap = (atoi(value) != 0);
+ break;
case SWM_S_WARP_POINTER:
warp_pointer = (atoi(value) != 0);
break;
case SWM_S_WARP_POINTER:
warp_pointer = (atoi(value) != 0);
break;
{ "urgent_collapse", setconfvalue, SWM_S_URGENT_COLLAPSE },
{ "urgent_enabled", setconfvalue, SWM_S_URGENT_ENABLED },
{ "verbose_layout", setconfvalue, SWM_S_VERBOSE_LAYOUT },
{ "urgent_collapse", setconfvalue, SWM_S_URGENT_COLLAPSE },
{ "urgent_enabled", setconfvalue, SWM_S_URGENT_ENABLED },
{ "verbose_layout", setconfvalue, SWM_S_VERBOSE_LAYOUT },
+ { "visible_noswap", setconfvalue, SWM_S_VISIBLE_NOSWAP },
{ "warp_pointer", setconfvalue, SWM_S_WARP_POINTER },
{ "window_class_enabled", setconfvalue, SWM_S_WINDOW_CLASS_ENABLED },
{ "window_instance_enabled", setconfvalue, SWM_S_WINDOW_INSTANCE_ENABLED },
{ "warp_pointer", setconfvalue, SWM_S_WARP_POINTER },
{ "window_class_enabled", setconfvalue, SWM_S_WINDOW_CLASS_ENABLED },
{ "window_instance_enabled", setconfvalue, SWM_S_WINDOW_INSTANCE_ENABLED },