Use output names instead of screen indices

Authored by valeriymalov on Feb 5 2018, 12:20 AM.

Description

Use output names instead of screen indices

Summary:
Screen index as an identificator can be pretty unreliable, since it can
change during the runtime (e.g. on login when kscreen applies primary
screen setting)

Use output name (e.g. HDMI-0) everywhere instead

ScreenMap: use raw ScreenSpace strings as mapping keys
ScreenSpace: introduce method next() that cycles through screen spaces
(monitors and whole desktop)
TabletAreaSelectionController: store ScreenSpace instead of index
X11Info: add helper functions to navigate through screens
TabletDaemon: remove outdated FIXME comments

Test Plan:
the usual see if there aren't any regressions in saving/restoring settings
inclduing Ctrl+Meta+1/2/F/M hotkeys that cycle through screens
initially old mapping settings are going to be lost
since map0/map1/etc. aren't valid screenspaces anymore

Reviewers: xuetianweng, fvogt

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

Details

Committed
valeriymalovFeb 9 2018, 5:12 PM
Differential Revision
D10274: Use output names instead of screen indices
Parents
R530:6a857558877c: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown