Fix "Pinned Chrome disappears when all Chrome windows are closed"

Authored by hein on Jan 4 2017, 9:05 AM.

Description

Fix "Pinned Chrome disappears when all Chrome windows are closed"

Summary:
It turns out that Chrome under certain conditions will change its
window metadata as it quits, causing a race we sometimes lose, failing
to reveal the associated launcher because we can no longer match it
to the window at window closing time. Instead we are now forced to
re-check all launchers after the window is gone. As a speed optimi-
zation we only consider top-level windows (and startups) as being in
a group implies matching siblings.

In addition this refactoring eliminates a use of Qt::QueuedConnection
that allowed for an unpredictable event loop spin inbetween things.

BUG:365617

Reviewers: davidedmundson

Subscribers: plasma-devel

Tags: Plasma

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

Details

Committed
heinJan 6 2017, 1:45 PM
Differential Revision
D3950: Try to fix "Pinned Chrome disappears when all Chrome windows are closed"
Parents
R120:a15345ef0165: Route through an "actionId" argument
Branches
Unknown
Tags
Unknown