Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 152 | [this] (ShellSurfaceInterface *surface) { | |||
---|---|---|---|---|---|
157 | if (surface->client() == m_xwayland.client) { | 157 | if (surface->client() == m_xwayland.client) { | ||
158 | // skip Xwayland clients, those are created using standard X11 way | 158 | // skip Xwayland clients, those are created using standard X11 way | ||
159 | return; | 159 | return; | ||
160 | } | 160 | } | ||
161 | if (surface->client() == m_screenLockerClientConnection) { | 161 | if (surface->client() == m_screenLockerClientConnection) { | ||
162 | ScreenLocker::KSldApp::self()->lockScreenShown(); | 162 | ScreenLocker::KSldApp::self()->lockScreenShown(); | ||
163 | } | 163 | } | ||
164 | auto client = new ShellClient(surface); | 164 | auto client = new ShellClient(surface); | ||
165 | if (auto c = Compositor::self()) { | | |||
166 | connect(client, &Toplevel::needsRepaint, c, &Compositor::scheduleRepaint); | | |||
167 | } | | |||
168 | if (client->isInternal()) { | 165 | if (client->isInternal()) { | ||
169 | m_internalClients << client; | 166 | m_internalClients << client; | ||
170 | } else { | 167 | } else { | ||
171 | m_clients << client; | 168 | m_clients << client; | ||
172 | } | 169 | } | ||
173 | if (client->readyForPainting()) { | 170 | if (client->readyForPainting()) { | ||
174 | emit shellClientAdded(client); | 171 | emit shellClientAdded(client); | ||
175 | } else { | 172 | } else { | ||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |