Commit 4729a42c authored by Roman Gilg's avatar Roman Gilg

Name Wayland socket automatically when no socket name was specified

Wayland provides functionality for servers to acquire an unused socket name
automatically. Do this through the recently added functionality in KWayland
in case no socket name was specified as an argument to KWin.

Test Plan: Manually, autotests pass.

Reviewers: #kwin, fvogt

Reviewed By: fvogt

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 260fa71d
......@@ -189,6 +189,8 @@ bool WaylandServer::init(const QByteArray &socketName, InitalizationFlags flags)
m_display = new KWayland::Server::Display(this);
if (!socketName.isNull() && !socketName.isEmpty()) {
} else {
if (!m_display->isRunning()) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment