aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar minus <minus@mnus.de>2015-08-20 15:22:38 +0200
committerLibravatar minus <minus@mnus.de>2015-08-20 15:27:59 +0200
commit4c56cd0ed638cc59f4412b7091220d2d32ba130c (patch)
tree8fffd26ff8f011b8863d4077e7fe513fc0c5f66d /sway
parentfixed formatting (diff)
downloadsway-4c56cd0ed638cc59f4412b7091220d2d32ba130c.tar.gz
sway-4c56cd0ed638cc59f4412b7091220d2d32ba130c.tar.zst
sway-4c56cd0ed638cc59f4412b7091220d2d32ba130c.zip
set I3SOCK for i3-msg compatibility
Diffstat (limited to 'sway')
-rw-r--r--sway/ipc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/ipc.c b/sway/ipc.c
index 074f2a78..505c17f8 100644
--- a/sway/ipc.c
+++ b/sway/ipc.c
@@ -57,6 +57,9 @@ void ipc_init(void) {
57 sway_abort("Unable to listen on IPC socket"); 57 sway_abort("Unable to listen on IPC socket");
58 } 58 }
59 59
60 // Set i3 IPC socket path so that i3-msg works out of the box
61 setenv("I3SOCK", ipc_sockaddr.sun_path, 1);
62
60 ipc_event_source = wlc_event_loop_add_fd(ipc_socket, WLC_EVENT_READABLE, ipc_handle_connection, NULL); 63 ipc_event_source = wlc_event_loop_add_fd(ipc_socket, WLC_EVENT_READABLE, ipc_handle_connection, NULL);
61} 64}
62 65