Runner/Windows make the window finding more reliable
Needs ReviewPublic

Authored by meven on Tue, Jan 7, 2:16 PM.

Details

Reviewers
ngraham
broulik
Group Reviewers
Plasma
Summary

Call gatherInfo immediately after prepareForMatchSession :
QTimer::singleShot could dispatch gatherInfo after the next WindowsRunner::match was called in a not-ready state preventing to return match.

BUG: 414804
FIXED-IN: 5.18

Diff Detail

Repository
R120 Plasma Workspace
Branch
improve-windowrunner
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 20752
Build 20770: arc lint + arc unit
meven created this revision.Tue, Jan 7, 2:16 PM
Restricted Application added a project: Plasma. · View Herald TranscriptTue, Jan 7, 2:16 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
meven requested review of this revision.Tue, Jan 7, 2:16 PM
meven edited the summary of this revision. (Show Details)Tue, Jan 7, 4:42 PM
meven added a comment.EditedWed, Jan 8, 11:53 AM

Instead we might want to keep a cache of windows and desktopNames and use KWindowSystem::desktopNamesChanged / numberOfDesktopsChanged and windowAdded / windowRemoved signals.