Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.cpp
Show First 20 Lines • Show All 627 Lines • ▼ Show 20 Line(s) | 627 | if (m_dpmsModePending == DpmsMode::On) { | |||
---|---|---|---|---|---|
628 | dpmsFinishOn(); | 628 | dpmsFinishOn(); | ||
629 | } else { | 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 | // TODO: Rotation is currently broken in the DRM backend for 90° and 270°. Disable all rotation for | ||||
637 | // now to not break user setups until it is possible again. | ||||
638 | #if 0 | ||||
636 | void DrmOutput::transform(KWayland::Server::OutputDeviceInterface::Transform transform) | 639 | void DrmOutput::transform(KWayland::Server::OutputDeviceInterface::Transform transform) | ||
637 | { | 640 | { | ||
638 | waylandOutputDevice()->setTransform(transform); | 641 | waylandOutputDevice()->setTransform(transform); | ||
639 | using KWayland::Server::OutputDeviceInterface; | 642 | using KWayland::Server::OutputDeviceInterface; | ||
640 | using KWayland::Server::OutputInterface; | 643 | using KWayland::Server::OutputInterface; | ||
641 | auto wlOutput = waylandOutput(); | 644 | auto wlOutput = waylandOutput(); | ||
642 | 645 | | |||
643 | switch (transform) { | 646 | switch (transform) { | ||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
705 | m_modesetRequested = true; | 708 | m_modesetRequested = true; | ||
706 | // the cursor might need to get rotated | 709 | // the cursor might need to get rotated | ||
707 | updateCursor(); | 710 | updateCursor(); | ||
708 | showCursor(); | 711 | showCursor(); | ||
709 | 712 | | |||
710 | // TODO: are these calls not enough in updateMode already? | 713 | // TODO: are these calls not enough in updateMode already? | ||
711 | setWaylandMode(); | 714 | setWaylandMode(); | ||
712 | } | 715 | } | ||
716 | #else | ||||
717 | void DrmOutput::transform(KWayland::Server::OutputDeviceInterface::Transform transform) | ||||
718 | { | ||||
719 | Q_UNUSED(transform) | ||||
720 | } | ||||
721 | #endif | ||||
713 | 722 | | |||
714 | void DrmOutput::updateMode(int modeIndex) | 723 | void DrmOutput::updateMode(int modeIndex) | ||
715 | { | 724 | { | ||
716 | // get all modes on the connector | 725 | // get all modes on the connector | ||
717 | DrmScopedPointer<drmModeConnector> connector(drmModeGetConnector(m_backend->fd(), m_conn->id())); | 726 | DrmScopedPointer<drmModeConnector> connector(drmModeGetConnector(m_backend->fd(), m_conn->id())); | ||
718 | if (connector->count_modes <= modeIndex) { | 727 | if (connector->count_modes <= modeIndex) { | ||
719 | // TODO: error? | 728 | // TODO: error? | ||
720 | return; | 729 | return; | ||
▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines |