allow changing an output's modelist at runtime This should fix running Plasma in a windowed virtual machine, when the window is resized, the mode list changes, and libksreen can't currently handle that.
ClosedPublic

Authored by sebas on Oct 19 2016, 9:40 PM.

Details

Summary
  • make Output::modes() non CONSTANT, add modesChanged() signal
  • compare the mode lists and set the new one
  • queue an outputChanged signal when applied
  • autotest for modelist changes
  • update the mode list on RRNotify events

BUG:356864

Test Plan
  • for library part, autotests are added
  • for xrandr backends, we can't sensibly autotest this :(

Diff Detail

Repository
R110 KScreen Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sebas updated this revision to Diff 7555.Oct 19 2016, 9:40 PM
sebas retitled this revision from to allow changing an output's modelist at runtime This should fix running Plasma in a windowed virtual machine, when the window is resized, the mode list changes, and libksreen can't currently handle that..
sebas updated this object.
sebas edited the test plan for this revision. (Show Details)
sebas added a reviewer: Plasma.
sebas added a subscriber: graesslin.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 19 2016, 9:40 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.Oct 20 2016, 9:23 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Oct 20 2016, 9:23 AM
This revision was automatically updated to reflect the committed changes.