D8602: [platforms/drm] Restore previous mode if an atomic test fails

Martin Flöser noreply at phabricator.kde.org
Wed Nov 1 18:24:04 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171101/c40fc846/attachment.html>


More information about the Plasma-devel mailing list