aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-10-25 15:27:53 -0400
committerFurkan Sahin <furkan-dev@proton.me>2025-10-25 15:27:53 -0400
commit33841d3d3d3fbb86891faca6fd85a4e6e0ed5a5e (patch)
tree3d67f5be0dc41b8dec6a38f7a6c144bff16a2236
parent92a187eac695df28e8e45e7cb3ab04df4d44407c (diff)
commands/floating: commit changesfor_window-ignored
forces for_window floating enable to render immediately rather than on mouse click / keyboard focus. fixes #8711
-rw-r--r--sway/commands/floating.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/floating.c b/sway/commands/floating.c
index 74f6522c..e7e37fa5 100644
--- a/sway/commands/floating.c
+++ b/sway/commands/floating.c
@@ -1,6 +1,7 @@
#include <string.h>
#include <strings.h>
#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);