graesslin created this revision. graesslin added reviewers: KWin, Plasma, subdiff. Restricted Application added a project: KWin. Restricted Application added subscribers: kwin, plasma-devel.
REVISION SUMMARY When KWin successfully presents a new mode, it stores the current state as the last working mode. If a new modeset is requested and the atomic test fails, all is undone and reverted to this last knowing mode. Currently included are: - the mode - global position - transformation This is only done on a modeset not when going to DPMS. TEST PLAN Selected the not working vertical rotation and nothing bad happened. REPOSITORY R108 KWin BRANCH drm-store-last-good-mode REVISION DETAIL https://phabricator.kde.org/D8602 AFFECTED FILES plugins/platforms/drm/drm_object_plane.cpp plugins/platforms/drm/drm_object_plane.h plugins/platforms/drm/drm_output.cpp plugins/platforms/drm/drm_output.h To: graesslin, #kwin, #plasma, subdiff Cc: plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart