Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show All 38 Lines | |||||
39 | #include <KWayland/Server/appmenu_interface.h> | 39 | #include <KWayland/Server/appmenu_interface.h> | ||
40 | #include <KWayland/Server/compositor_interface.h> | 40 | #include <KWayland/Server/compositor_interface.h> | ||
41 | #include <KWayland/Server/datadevicemanager_interface.h> | 41 | #include <KWayland/Server/datadevicemanager_interface.h> | ||
42 | #include <KWayland/Server/datasource_interface.h> | 42 | #include <KWayland/Server/datasource_interface.h> | ||
43 | #include <KWayland/Server/display.h> | 43 | #include <KWayland/Server/display.h> | ||
44 | #include <KWayland/Server/dpms_interface.h> | 44 | #include <KWayland/Server/dpms_interface.h> | ||
45 | #include <KWayland/Server/idle_interface.h> | 45 | #include <KWayland/Server/idle_interface.h> | ||
46 | #include <KWayland/Server/idleinhibit_interface.h> | 46 | #include <KWayland/Server/idleinhibit_interface.h> | ||
47 | #include <KWayland/Server/linuxdmabuf_v1_interface.h> | ||||
47 | #include <KWayland/Server/output_interface.h> | 48 | #include <KWayland/Server/output_interface.h> | ||
48 | #include <KWayland/Server/plasmashell_interface.h> | 49 | #include <KWayland/Server/plasmashell_interface.h> | ||
49 | #include <KWayland/Server/plasmavirtualdesktop_interface.h> | 50 | #include <KWayland/Server/plasmavirtualdesktop_interface.h> | ||
50 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | 51 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | ||
51 | #include <KWayland/Server/pointerconstraints_interface.h> | 52 | #include <KWayland/Server/pointerconstraints_interface.h> | ||
52 | #include <KWayland/Server/pointergestures_interface.h> | 53 | #include <KWayland/Server/pointergestures_interface.h> | ||
53 | #include <KWayland/Server/qtsurfaceextension_interface.h> | 54 | #include <KWayland/Server/qtsurfaceextension_interface.h> | ||
54 | #include <KWayland/Server/seat_interface.h> | 55 | #include <KWayland/Server/seat_interface.h> | ||
▲ Show 20 Lines • Show All 393 Lines • ▼ Show 20 Line(s) | 283 | { | |||
448 | m_XdgForeign->create(); | 449 | m_XdgForeign->create(); | ||
449 | 450 | | |||
450 | m_keyState = m_display->createKeyStateInterface(m_display); | 451 | m_keyState = m_display->createKeyStateInterface(m_display); | ||
451 | m_keyState->create(); | 452 | m_keyState->create(); | ||
452 | 453 | | |||
453 | return true; | 454 | return true; | ||
454 | } | 455 | } | ||
455 | 456 | | |||
457 | KWayland::Server::LinuxDmabufUnstableV1Interface *WaylandServer::linuxDmabuf() | ||||
458 | { | ||||
459 | if (!m_linuxDmabuf) { | ||||
460 | m_linuxDmabuf = m_display->createLinuxDmabufInterface(m_display); | ||||
461 | m_linuxDmabuf->create(); | ||||
462 | } | ||||
463 | return m_linuxDmabuf; | ||||
464 | } | ||||
465 | | ||||
456 | SurfaceInterface *WaylandServer::findForeignTransientForSurface(SurfaceInterface *surface) | 466 | SurfaceInterface *WaylandServer::findForeignTransientForSurface(SurfaceInterface *surface) | ||
457 | { | 467 | { | ||
458 | return m_XdgForeign->transientFor(surface); | 468 | return m_XdgForeign->transientFor(surface); | ||
459 | } | 469 | } | ||
460 | 470 | | |||
461 | void WaylandServer::shellClientShown(Toplevel *t) | 471 | void WaylandServer::shellClientShown(Toplevel *t) | ||
462 | { | 472 | { | ||
463 | XdgShellClient *c = dynamic_cast<XdgShellClient *>(t); | 473 | XdgShellClient *c = dynamic_cast<XdgShellClient *>(t); | ||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |