ScreenPool: Store primary connector separately
AbandonedPublic

Authored by genpfault on Oct 3 2020, 3:12 AM.

Details

Reviewers
None
Summary
  • Store the primary connector in a dedicated config key instead of making slot 0 do double-duty. This prevents setPrimaryConnector() from renumbering the connector list and 'losing' existing panel/desktop settings.
  • Add a helper function to generate connector names instead of using QScreen::name() everywhere. The helper function defaults to a QScreen::manufacturer()/model()/serialNumber() tuple where available with a fall-back to the original name() logic.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Lint Skipped
Unit
Unit Tests Skipped
genpfault created this revision.Oct 3 2020, 3:12 AM
Restricted Application added a project: Plasma. · View Herald TranscriptOct 3 2020, 3:12 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
genpfault requested review of this revision.Oct 3 2020, 3:12 AM
cblack added a subscriber: cblack.EditedOct 3 2020, 3:14 AM

Thanks for the patch, however we use GitLab now for contributing code.

Would you mind opening this as an MR at https://invent.kde.org/plasma/plasma-workspace?

You can read about how to use GitLab at https://community.kde.org/Infrastructure/GitLab.

genpfault abandoned this revision.Oct 3 2020, 3:16 AM