compositor: implement wayland socket handover (#6930)

* compositor: 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

* main: verify that --wayland-fd is a valid file descriptor

* main: fail if only one of --socket and --wayland-fd is passed
This commit is contained in:
Ferdinand Bachmann
2024-07-20 00:37:20 +02:00
committed by GitHub
parent 8e15f91c24
commit efccf25fcc
5 changed files with 74 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ class CCompositor {
std::unordered_map<std::string, uint64_t> m_mMonitorIDMap;
void initServer();
void startCompositor();
void startCompositor(std::string socketName, int socketFd);
void cleanup();
void createLockFile();
void removeLockFile();