diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-15 06:49:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 06:49:29 -0700 |
commit | 8e05fb782658f0bc13cfba6c069ba39122417317 (patch) | |
tree | 87a568ff97fc94ca82b9ceb4abacb02ea86a9f71 /sway/ipc-server.c | |
parent | 53e3f35ba348d6285478ceb4a93b020e138c95c7 (diff) | |
parent | a120d4c79f9406a2f7cc38c60069d3183c98ea87 (diff) | |
download | sway-8e05fb782658f0bc13cfba6c069ba39122417317.tar.xz |
Merge pull request #2275 from RyanDwyer/transactionise-focus
Make focus part of transactions
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r-- | sway/ipc-server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index c5161a6b..be703915 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -18,6 +18,7 @@ #include <wayland-server.h> #include "sway/commands.h" #include "sway/config.h" +#include "sway/desktop/transaction.h" #include "sway/ipc-json.h" #include "sway/ipc-server.h" #include "sway/output.h" @@ -484,6 +485,7 @@ void ipc_client_handle_command(struct ipc_client *client) { case IPC_COMMAND: { struct cmd_results *results = execute_command(buf, NULL); + transaction_commit_dirty(); char *json = cmd_results_to_json(results); int length = strlen(json); client_valid = ipc_send_reply(client, json, (uint32_t)length); |