Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/wayland_output.cpp
Show All 35 Lines | |||||
36 | 36 | | |||
37 | using namespace KWayland::Client; | 37 | using namespace KWayland::Client; | ||
38 | 38 | | |||
39 | WaylandOutput::WaylandOutput(Surface *surface, WaylandBackend *backend) | 39 | WaylandOutput::WaylandOutput(Surface *surface, WaylandBackend *backend) | ||
40 | : AbstractWaylandOutput(backend) | 40 | : AbstractWaylandOutput(backend) | ||
41 | , m_surface(surface) | 41 | , m_surface(surface) | ||
42 | , m_backend(backend) | 42 | , m_backend(backend) | ||
43 | { | 43 | { | ||
44 | static int identifier = -1; | ||||
45 | identifier++; | ||||
46 | setName("WL-" + QString::number(identifier)); | ||||
47 | | ||||
44 | connect(surface, &Surface::frameRendered, [this] { | 48 | connect(surface, &Surface::frameRendered, [this] { | ||
45 | m_rendered = true; | 49 | m_rendered = true; | ||
46 | emit frameRendered(); | 50 | emit frameRendered(); | ||
47 | }); | 51 | }); | ||
48 | } | 52 | } | ||
49 | 53 | | |||
50 | WaylandOutput::~WaylandOutput() | 54 | WaylandOutput::~WaylandOutput() | ||
51 | { | 55 | { | ||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |