From d8a701aa1f39747a844f614269b65b3e08a88697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Barreteau?= <> Date: Sat, 9 Jan 2021 09:39:55 +0100 Subject: [PATCH] Honor `pointer_follows_focus` when node commands change the tree --- src/messages.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/messages.c b/src/messages.c index d3852594..d3e5c12a 100644 --- a/src/messages.c +++ b/src/messages.c @@ -595,6 +595,9 @@ void cmd_node(char **args, int num, FILE *rsp) if (changed) { arrange(trg.monitor, trg.desktop); + if (pointer_follows_focus) { + center_pointer(get_rectangle(mon, mon->desk, mon->desk->focus)); + } } }