aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-29 10:43:32 -0500
committerLibravatar emersion <contact@emersion.fr>2018-12-29 17:07:26 +0100
commitae8937b11a7d026aaf9b79b3bc28596c1fdbd296 (patch)
tree5717da3ed29ebd93693778ffee33f12fa650a997 /sway/ipc-server.c
parentRemove button from state on release during op (diff)
downloadsway-ae8937b11a7d026aaf9b79b3bc28596c1fdbd296.tar.gz
sway-ae8937b11a7d026aaf9b79b3bc28596c1fdbd296.tar.zst
sway-ae8937b11a7d026aaf9b79b3bc28596c1fdbd296.zip
Add failure reply on IPC_SYNC
Since it was decided that sway will not support IPC_SYNC, just return `{'success': false}` as a reply
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 69009f25..28546d41 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -836,6 +836,14 @@ void ipc_client_handle_command(struct ipc_client *client) {
836 goto exit_cleanup; 836 goto exit_cleanup;
837 } 837 }
838 838
839 case IPC_SYNC:
840 {
841 // It was decided sway will not support this, just return success:false
842 const char msg[] = "{\"success\": false}";
843 ipc_send_reply(client, msg, strlen(msg));
844 goto exit_cleanup;
845 }
846
839 default: 847 default:
840 wlr_log(WLR_INFO, "Unknown IPC command type %i", client->current_command); 848 wlr_log(WLR_INFO, "Unknown IPC command type %i", client->current_command);
841 goto exit_cleanup; 849 goto exit_cleanup;