From 554605bf99440f0234067e6e238c0d52f7fd014b Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Sat, 25 Oct 2025 15:27:53 -0400 Subject: [PATCH] commands/floating: commit changes forces for_window floating enable to render immediately rather than on mouse click / keyboard focus. fixes #8711 --- sway/commands/floating.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/commands/floating.c b/sway/commands/floating.c index 74f6522c7..e7e37fa5f 100644 --- a/sway/commands/floating.c +++ b/sway/commands/floating.c @@ -1,6 +1,7 @@ #include #include #include "sway/commands.h" +#include "sway/desktop/transaction.h" #include "sway/input/seat.h" #include "sway/ipc-server.h" #include "sway/output.h" @@ -53,6 +54,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) { // Floating containers in the scratchpad should be ignored if (container->pending.workspace) { arrange_workspace(container->pending.workspace); + transaction_commit_dirty(); } return cmd_results_new(CMD_SUCCESS, NULL);