[server] Cache current mode

Authored by romangg on Aug 27 2019, 1:31 PM.

Description

[server] Cache current mode

Summary:
Instead of looping over all modes for retrieving current mode data copy it
to a separate variable.

Test Plan:
KWin auto tests pass and KScreen in Wayland nested session shows correct
information.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: davidedmundson, kde-frameworks-devel

Tags: Frameworks

Maniphest Tasks: T11459

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

Details

Committed
romanggAug 28 2019, 11:10 AM
Reviewer
KWin
Differential Revision
D23493: [server] Cache current mode
Parents
R127:70112edf82d8: GIT_SILENT Upgrade KF5 version to 5.62.0.
Branches
Unknown
Tags
Unknown