From 05a418c9fe3d1c1eddd2a28cde017d64a81cd9be Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sun, 6 Dec 2020 13:57:45 -0500 Subject: [PATCH] Add a connection label for wayland clients lauched by sway This adds a few arguments to exec that cause sway to create a wayland socket file descriptor and point the WAYLAND_SOCKET environment variable at the socket. This in turn allows sway to track all windows created by this client (in a more robust manner than the existing pid-based tracking). Note that this only works if the exec ends up launching a single wayland client (a script that launches multiple commands will not work correctly; a process that uses libwayland-client itself and runs other processes is fine). "exec --use-wayland-socket command" only sets WAYLAND_SOCKET and does nothing else. "exec --label