i3:multi-monitor: Send only one i3-msg command

Moving and then switching in a separate command flickered sometimes.
This commit is contained in:
2025-06-06 12:03:41 +02:00
parent a67f8c9ec6
commit 616298df72

View File

@@ -50,5 +50,7 @@ if [ -z "$switch" ] && [ -z "$move" ]; then
exit 0 exit 0
fi fi
[ -z "$move" ] || i3-msg move container to workspace "$workspace" cmd=
[ -z "$switch" ] || i3-msg workspace "$workspace" [ -z "$move" ] || cmd="move container to workspace $workspace"
[ -z "$switch" ] || cmd="$cmd${cmd:+; }workspace $workspace"
i3-msg "$cmd"