Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 141 | { | |||
---|---|---|---|---|---|
146 | if (surface->client() == m_xwayland.client) { | 146 | if (surface->client() == m_xwayland.client) { | ||
147 | // skip Xwayland clients, those are created using standard X11 way | 147 | // skip Xwayland clients, those are created using standard X11 way | ||
148 | return; | 148 | return; | ||
149 | } | 149 | } | ||
150 | if (surface->client() == m_screenLockerClientConnection) { | 150 | if (surface->client() == m_screenLockerClientConnection) { | ||
151 | ScreenLocker::KSldApp::self()->lockScreenShown(); | 151 | ScreenLocker::KSldApp::self()->lockScreenShown(); | ||
152 | } | 152 | } | ||
153 | auto client = new ShellClient(surface); | 153 | auto client = new ShellClient(surface); | ||
154 | if (ServerSideDecorationInterface *deco = ServerSideDecorationInterface::get(surface->surface())) { | ||||
155 | client->installServerSideDecoration(deco); | ||||
156 | } | ||||
154 | auto it = std::find_if(m_plasmaShellSurfaces.begin(), m_plasmaShellSurfaces.end(), | 157 | auto it = std::find_if(m_plasmaShellSurfaces.begin(), m_plasmaShellSurfaces.end(), | ||
155 | [client] (PlasmaShellSurfaceInterface *surface) { | 158 | [client] (PlasmaShellSurfaceInterface *surface) { | ||
156 | return client->surface() == surface->surface(); | 159 | return client->surface() == surface->surface(); | ||
157 | } | 160 | } | ||
158 | ); | 161 | ); | ||
159 | if (it != m_plasmaShellSurfaces.end()) { | 162 | if (it != m_plasmaShellSurfaces.end()) { | ||
160 | client->installPlasmaShellSurface(*it); | 163 | client->installPlasmaShellSurface(*it); | ||
161 | m_plasmaShellSurfaces.erase(it); | 164 | m_plasmaShellSurfaces.erase(it); | ||
▲ Show 20 Lines • Show All 660 Lines • Show Last 20 Lines |