From 568befdd3fc7df4b884efccaa11f4c9916a64eb2 Mon Sep 17 00:00:00 2001 From: werapi Date: Sun, 19 Oct 2025 17:00:43 +0200 Subject: [PATCH] opt: make focusmon and tagmon respect warpcursor setting --- src/dispatch/bind_define.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index d2ad846..538b800 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -191,7 +191,9 @@ int focusmon(const Arg *arg) { old_selmon_sel = selmon->sel; selmon = m; - warp_cursor_to_selmon(selmon); + if (warpcursor) { + warp_cursor_to_selmon(selmon); + } c = focustop(selmon); if (!c) { selmon->sel = NULL; @@ -1074,7 +1076,9 @@ int tagmon(const Arg *arg) { focusclient(c, 1); arrange(selmon, false); } - warp_cursor_to_selmon(c->mon); + if (warpcursor) { + warp_cursor_to_selmon(c->mon); + } return 0; } @@ -1531,4 +1535,4 @@ int toggleoverview(const Arg *arg) { refresh_monitors_workspaces_status(selmon); return 0; -} \ No newline at end of file +}