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