sway/server: implement wayland socket handover

This commit implements the compositor side of the Wayland socket
handover protocol as described in the [KDE Wiki]. The CLI options are
chosen so that they are compatible with Kwin.

[KDE Wiki]: https://invent.kde.org/plasma/kwin/-/wikis/Restarting
This commit is contained in:
Ferdinand Bachmann 2024-07-17 23:25:46 +02:00
parent 723b1ea3b7
commit 4a3d170d25
4 changed files with 38 additions and 10 deletions

View file

@ -164,7 +164,7 @@ extern bool allow_unsupported_gpu;
void sway_terminate(int exit_code);
bool server_init(struct sway_server *server);
bool server_init(struct sway_server *server, const char * socket_name, int socket_fd);
void server_fini(struct sway_server *server);
bool server_start(struct sway_server *server);
void server_run(struct sway_server *server);