summary refs log tree commit diff
path: root/bin/swx
diff options
context:
space:
mode:
Diffstat (limited to 'bin/swx')
-rwxr-xr-xbin/swx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/swx b/bin/swx
index 3e894f7..dfe852f 100755
--- a/bin/swx
+++ b/bin/swx
@@ -144,7 +144,7 @@ sway_props_done=
 while [ -z "${sway_props_done}" ]; do
 	if [ -n "${floating}" ]; then
 		swaymsg -- [con_id="${con_id}"] floating enable
-		[ "${floating}" = "1" ] || centercon ${floating}
+		[ "${floating}" = "1" ] || centercon -w ${floating}
 	fi
 	if [ -n "${into_scratchpad}" ]; then
 		swaymsg -- [con_id="${con_id}"] move to scratchpad