Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show All 39 Lines | |||||
40 | #include <KWayland/Server/appmenu_interface.h> | 40 | #include <KWayland/Server/appmenu_interface.h> | ||
41 | #include <KWayland/Server/compositor_interface.h> | 41 | #include <KWayland/Server/compositor_interface.h> | ||
42 | #include <KWayland/Server/datadevicemanager_interface.h> | 42 | #include <KWayland/Server/datadevicemanager_interface.h> | ||
43 | #include <KWayland/Server/datasource_interface.h> | 43 | #include <KWayland/Server/datasource_interface.h> | ||
44 | #include <KWayland/Server/display.h> | 44 | #include <KWayland/Server/display.h> | ||
45 | #include <KWayland/Server/dpms_interface.h> | 45 | #include <KWayland/Server/dpms_interface.h> | ||
46 | #include <KWayland/Server/idle_interface.h> | 46 | #include <KWayland/Server/idle_interface.h> | ||
47 | #include <KWayland/Server/idleinhibit_interface.h> | 47 | #include <KWayland/Server/idleinhibit_interface.h> | ||
48 | #include <KWayland/Server/linuxdmabuf_v1_interface.h> | ||||
48 | #include <KWayland/Server/output_interface.h> | 49 | #include <KWayland/Server/output_interface.h> | ||
49 | #include <KWayland/Server/plasmashell_interface.h> | 50 | #include <KWayland/Server/plasmashell_interface.h> | ||
50 | #include <KWayland/Server/plasmavirtualdesktop_interface.h> | 51 | #include <KWayland/Server/plasmavirtualdesktop_interface.h> | ||
51 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | 52 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | ||
52 | #include <KWayland/Server/pointerconstraints_interface.h> | 53 | #include <KWayland/Server/pointerconstraints_interface.h> | ||
53 | #include <KWayland/Server/pointergestures_interface.h> | 54 | #include <KWayland/Server/pointergestures_interface.h> | ||
54 | #include <KWayland/Server/qtsurfaceextension_interface.h> | 55 | #include <KWayland/Server/qtsurfaceextension_interface.h> | ||
55 | #include <KWayland/Server/seat_interface.h> | 56 | #include <KWayland/Server/seat_interface.h> | ||
▲ Show 20 Lines • Show All 410 Lines • ▼ Show 20 Line(s) | 292 | { | |||
466 | m_XdgForeign->create(); | 467 | m_XdgForeign->create(); | ||
467 | 468 | | |||
468 | m_keyState = m_display->createKeyStateInterface(m_display); | 469 | m_keyState = m_display->createKeyStateInterface(m_display); | ||
469 | m_keyState->create(); | 470 | m_keyState->create(); | ||
470 | 471 | | |||
471 | return true; | 472 | return true; | ||
472 | } | 473 | } | ||
473 | 474 | | |||
475 | KWayland::Server::LinuxDmabufUnstableV1Interface *WaylandServer::linuxDmabuf() | ||||
476 | { | ||||
477 | if (!m_linuxDmabuf) { | ||||
478 | m_linuxDmabuf = m_display->createLinuxDmabufInterface(m_display); | ||||
479 | m_linuxDmabuf->create(); | ||||
480 | } | ||||
481 | return m_linuxDmabuf; | ||||
482 | } | ||||
483 | | ||||
474 | SurfaceInterface *WaylandServer::findForeignTransientForSurface(SurfaceInterface *surface) | 484 | SurfaceInterface *WaylandServer::findForeignTransientForSurface(SurfaceInterface *surface) | ||
475 | { | 485 | { | ||
476 | return m_XdgForeign->transientFor(surface); | 486 | return m_XdgForeign->transientFor(surface); | ||
477 | } | 487 | } | ||
478 | 488 | | |||
479 | void WaylandServer::shellClientShown(Toplevel *t) | 489 | void WaylandServer::shellClientShown(Toplevel *t) | ||
480 | { | 490 | { | ||
481 | ShellClient *c = dynamic_cast<ShellClient*>(t); | 491 | ShellClient *c = dynamic_cast<ShellClient*>(t); | ||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |