Do not allow swapping floating panes for the moment.

This commit is contained in:
nicm
2026-06-07 08:22:58 +00:00
parent 3a72f3beb8
commit 4063f968c6

View File

@@ -79,7 +79,7 @@ cmd_swap_pane_exec(struct cmd *self, struct cmdq_item *item)
if (src_wp == dst_wp) if (src_wp == dst_wp)
goto out; goto out;
if (window_pane_is_floating(src_wp) && if (window_pane_is_floating(src_wp) ||
window_pane_is_floating(dst_wp)) { window_pane_is_floating(dst_wp)) {
cmdq_error(item, "cannot swap floating panes"); cmdq_error(item, "cannot swap floating panes");
return (CMD_RETURN_ERROR); return (CMD_RETURN_ERROR);