Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/wayland_output.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
56 | 56 | | |||
57 | void WaylandOutput::init(const QPoint &logicalPosition, const QSize &pixelSize) | 57 | void WaylandOutput::init(const QPoint &logicalPosition, const QSize &pixelSize) | ||
58 | { | 58 | { | ||
59 | KWayland::Server::OutputDeviceInterface::Mode mode; | 59 | KWayland::Server::OutputDeviceInterface::Mode mode; | ||
60 | mode.id = 0; | 60 | mode.id = 0; | ||
61 | mode.size = pixelSize; | 61 | mode.size = pixelSize; | ||
62 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | 62 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | ||
63 | mode.refreshRate = 60000; // TODO: can we get refresh rate data from Wayland host? | 63 | mode.refreshRate = 60000; // TODO: can we get refresh rate data from Wayland host? | ||
64 | AbstractWaylandOutput::initWaylandOutputDevice("model_TODO", "manufacturer_TODO", | 64 | initInterfaces("model_TODO", "manufacturer_TODO", "UUID_TODO", pixelSize, { mode }); | ||
65 | "UUID_TODO", pixelSize, { mode }); | | |||
66 | setEnabled(true); | | |||
67 | setGeometry(logicalPosition, pixelSize); | 65 | setGeometry(logicalPosition, pixelSize); | ||
68 | setScale(backend()->initialOutputScale()); | 66 | setScale(backend()->initialOutputScale()); | ||
69 | } | 67 | } | ||
70 | 68 | | |||
71 | void WaylandOutput::setGeometry(const QPoint &logicalPosition, const QSize &pixelSize) | 69 | void WaylandOutput::setGeometry(const QPoint &logicalPosition, const QSize &pixelSize) | ||
72 | { | 70 | { | ||
73 | // TODO: set mode to have updated pixelSize | 71 | // TODO: set mode to have updated pixelSize | ||
74 | Q_UNUSED(pixelSize) | 72 | Q_UNUSED(pixelSize) | ||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |