Add enforced mode size getter

Authored by romangg on Sep 17 2019, 10:44 PM.

Description

Add enforced mode size getter

Summary:
Introduce little helper to API, which gives back either the current mode size
or if no current mode is set the preferred mode or if there is no preferred
mode as last resort the first one in the map if the map is not empty.

In a small behavior change geometry() then can still give a valid geometry
back even if no current mode is set at the moment.

Test Plan: Compiles.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D24037

Details

Committed
romanggSep 18 2019, 6:25 PM
Differential Revision
D24037: Add enforced mode size getter
Parents
R110:31d71564874d: RandR: Replicate outputs with XRender extension
Branches
Unknown
Tags
Unknown