Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Line(s) | 306 | auto check = [surface] (const Toplevel *t) { | |||
---|---|---|---|---|---|
307 | return t->surfaceId() == surface->id(); | 307 | return t->surfaceId() == surface->id(); | ||
308 | }; | 308 | }; | ||
309 | if (Toplevel *t = ws->findToplevel(check)) { | 309 | if (Toplevel *t = ws->findToplevel(check)) { | ||
310 | t->setSurface(surface); | 310 | t->setSurface(surface); | ||
311 | } | 311 | } | ||
312 | } | 312 | } | ||
313 | ); | 313 | ); | ||
314 | 314 | | |||
315 | m_xdgShell5 = m_display->createXdgShell(XdgShellInterfaceVersion::UnstableV5, m_display); | | |||
316 | m_xdgShell5->create(); | | |||
317 | connect(m_xdgShell5, &XdgShellInterface::surfaceCreated, this, &WaylandServer::createSurface<XdgShellSurfaceInterface>); | | |||
318 | // TODO: verify seat and serial | | |||
319 | connect(m_xdgShell5, &XdgShellInterface::popupCreated, this, &WaylandServer::createSurface<XdgShellPopupInterface>); | | |||
320 | | ||||
321 | m_xdgShell6 = m_display->createXdgShell(XdgShellInterfaceVersion::UnstableV6, m_display); | 315 | m_xdgShell6 = m_display->createXdgShell(XdgShellInterfaceVersion::UnstableV6, m_display); | ||
322 | m_xdgShell6->create(); | 316 | m_xdgShell6->create(); | ||
323 | connect(m_xdgShell6, &XdgShellInterface::surfaceCreated, this, &WaylandServer::createSurface<XdgShellSurfaceInterface>); | 317 | connect(m_xdgShell6, &XdgShellInterface::surfaceCreated, this, &WaylandServer::createSurface<XdgShellSurfaceInterface>); | ||
324 | connect(m_xdgShell6, &XdgShellInterface::xdgPopupCreated, this, &WaylandServer::createSurface<XdgShellPopupInterface>); | 318 | connect(m_xdgShell6, &XdgShellInterface::xdgPopupCreated, this, &WaylandServer::createSurface<XdgShellPopupInterface>); | ||
325 | 319 | | |||
326 | m_xdgShell = m_display->createXdgShell(XdgShellInterfaceVersion::Stable, m_display); | 320 | m_xdgShell = m_display->createXdgShell(XdgShellInterfaceVersion::Stable, m_display); | ||
327 | m_xdgShell->create(); | 321 | m_xdgShell->create(); | ||
328 | connect(m_xdgShell, &XdgShellInterface::surfaceCreated, this, &WaylandServer::createSurface<XdgShellSurfaceInterface>); | 322 | connect(m_xdgShell, &XdgShellInterface::surfaceCreated, this, &WaylandServer::createSurface<XdgShellSurfaceInterface>); | ||
▲ Show 20 Lines • Show All 456 Lines • Show Last 20 Lines |