Skip to content

Commit 2f776c5

Browse files
committed
commands/floating: commit changes
forces for_window floating enable to render immediately rather than on mouse click / keyboard focus. fixes #8711
1 parent 3cd38f6 commit 2f776c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sway/commands/floating.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <string.h>
22
#include <strings.h>
33
#include "sway/commands.h"
4+
#include "sway/desktop/transaction.h"
45
#include "sway/input/seat.h"
56
#include "sway/ipc-server.h"
67
#include "sway/output.h"
@@ -53,6 +54,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) {
5354
// Floating containers in the scratchpad should be ignored
5455
if (container->pending.workspace) {
5556
arrange_workspace(container->pending.workspace);
57+
transaction_commit_dirty();
5658
}
5759

5860
return cmd_results_new(CMD_SUCCESS, NULL);

0 commit comments

Comments
 (0)