Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.cpp
Show First 20 Lines • Show All 629 Lines • ▼ Show 20 Line(s) | 629 | } else { | |||
---|---|---|---|---|---|
630 | dpmsFinishOff(); | 630 | dpmsFinishOff(); | ||
631 | } | 631 | } | ||
632 | m_dpmsMode = m_dpmsModePending; | 632 | m_dpmsMode = m_dpmsModePending; | ||
633 | return true; | 633 | return true; | ||
634 | } | 634 | } | ||
635 | 635 | | |||
636 | void DrmOutput::transform(KWayland::Server::OutputDeviceInterface::Transform transform) | 636 | void DrmOutput::transform(KWayland::Server::OutputDeviceInterface::Transform transform) | ||
637 | { | 637 | { | ||
638 | // TODO: Rotation is currently broken in the DRM backend for 90° and 270°. Disable it for now to | ||||
639 | // not break user setups until it is possible again. | ||||
640 | if (transform == KWayland::Server::OutputDeviceInterface::Transform::Rotated90 || | ||||
641 | transform == KWayland::Server::OutputDeviceInterface::Transform::Rotated270 || | ||||
642 | transform == KWayland::Server::OutputDeviceInterface::Transform::Flipped90 || | ||||
643 | transform == KWayland::Server::OutputDeviceInterface::Transform::Flipped270) { | ||||
644 | return; | ||||
645 | } | ||||
646 | | ||||
638 | waylandOutputDevice()->setTransform(transform); | 647 | waylandOutputDevice()->setTransform(transform); | ||
639 | using KWayland::Server::OutputDeviceInterface; | 648 | using KWayland::Server::OutputDeviceInterface; | ||
640 | using KWayland::Server::OutputInterface; | 649 | using KWayland::Server::OutputInterface; | ||
641 | auto wlOutput = waylandOutput(); | 650 | auto wlOutput = waylandOutput(); | ||
642 | 651 | | |||
643 | switch (transform) { | 652 | switch (transform) { | ||
644 | case OutputDeviceInterface::Transform::Normal: | 653 | case OutputDeviceInterface::Transform::Normal: | ||
645 | if (m_primaryPlane) { | 654 | if (m_primaryPlane) { | ||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |