sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 4c56cd0ed638cc59f4412b7091220d2d32ba130c
parent 6ab968e63eb8c59abda6ddf9c5ae6d5a15d4c25e
Author: minus <minus@mnus.de>
Date:   Thu, 20 Aug 2015 15:22:38 +0200

set I3SOCK for i3-msg compatibility

Diffstat:
Msway/ipc.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/sway/ipc.c b/sway/ipc.c @@ -57,6 +57,9 @@ void ipc_init(void) { sway_abort("Unable to listen on IPC socket"); } + // Set i3 IPC socket path so that i3-msg works out of the box + setenv("I3SOCK", ipc_sockaddr.sun_path, 1); + ipc_event_source = wlc_event_loop_add_fd(ipc_socket, WLC_EVENT_READABLE, ipc_handle_connection, NULL); }