Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | 227 | if (servicesFound.isEmpty()) { | |||
---|---|---|---|---|---|
229 | return {}; | 229 | return {}; | ||
230 | } | 230 | } | ||
231 | 231 | | |||
232 | const auto interfaces = servicesFound.first()->property("X-KDE-Wayland-Interfaces").toStringList(); | 232 | const auto interfaces = servicesFound.first()->property("X-KDE-Wayland-Interfaces").toStringList(); | ||
233 | qCDebug(KWIN_CORE) << "Interfaces for" << client->executablePath() << interfaces; | 233 | qCDebug(KWIN_CORE) << "Interfaces for" << client->executablePath() << interfaces; | ||
234 | return interfaces; | 234 | return interfaces; | ||
235 | } | 235 | } | ||
236 | 236 | | |||
237 | const QSet<QByteArray> interfacesBlackList = {"org_kde_kwin_remote_access_manager", "org_kde_plasma_window_management", "org_kde_kwin_fake_input", "org_kde_kwin_keystate"}; | 237 | const QSet<QByteArray> interfacesBlackList = {"org_kde_kwin_remote_access_manager", "org_kde_plasma_window_management", "org_kde_kwin_fake_input", "org_kde_kwin_keystate", "zkde_screencast_unstable_v1"}; | ||
238 | QSet<QString> m_reported; | 238 | QSet<QString> m_reported; | ||
239 | 239 | | |||
240 | bool allowInterface(KWaylandServer::ClientConnection *client, const QByteArray &interfaceName) override { | 240 | bool allowInterface(KWaylandServer::ClientConnection *client, const QByteArray &interfaceName) override { | ||
241 | if (client->processId() == getpid()) { | 241 | if (client->processId() == getpid()) { | ||
242 | return true; | 242 | return true; | ||
243 | } | 243 | } | ||
244 | 244 | | |||
245 | if (!interfacesBlackList.contains(interfaceName)) { | 245 | if (!interfacesBlackList.contains(interfaceName)) { | ||
▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | 289 | { | |||
448 | m_display->createSubCompositor(m_display)->create(); | 448 | m_display->createSubCompositor(m_display)->create(); | ||
449 | 449 | | |||
450 | m_XdgForeign = m_display->createXdgForeignInterface(m_display); | 450 | m_XdgForeign = m_display->createXdgForeignInterface(m_display); | ||
451 | m_XdgForeign->create(); | 451 | m_XdgForeign->create(); | ||
452 | 452 | | |||
453 | m_keyState = m_display->createKeyStateInterface(m_display); | 453 | m_keyState = m_display->createKeyStateInterface(m_display); | ||
454 | m_keyState->create(); | 454 | m_keyState->create(); | ||
455 | 455 | | |||
456 | m_screencast = m_display->createScreencastInterface(m_display); | ||||
457 | | ||||
456 | return true; | 458 | return true; | ||
457 | } | 459 | } | ||
458 | 460 | | |||
459 | KWaylandServer::LinuxDmabufUnstableV1Interface *WaylandServer::linuxDmabuf() | 461 | KWaylandServer::LinuxDmabufUnstableV1Interface *WaylandServer::linuxDmabuf() | ||
460 | { | 462 | { | ||
461 | if (!m_linuxDmabuf) { | 463 | if (!m_linuxDmabuf) { | ||
462 | m_linuxDmabuf = m_display->createLinuxDmabufInterface(m_display); | 464 | m_linuxDmabuf = m_display->createLinuxDmabufInterface(m_display); | ||
463 | m_linuxDmabuf->create(); | 465 | m_linuxDmabuf->create(); | ||
▲ Show 20 Lines • Show All 379 Lines • Show Last 20 Lines |