This commit is contained in:
Scott Leggett 2026-06-03 12:12:11 +08:00 committed by GitHub
commit 3069ed9933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -260,6 +260,10 @@ static struct sway_node *node_get_in_direction_floating(
static struct cmd_results *focus_mode(struct sway_workspace *ws,
struct sway_seat *seat, bool floating) {
if (!ws) {
return cmd_results_new(CMD_FAILURE,
"Target container is not in a workspace");
}
struct sway_container *new_focus = NULL;
if (floating) {
new_focus = seat_get_focus_inactive_floating(seat, ws);