Don't autohide panel if a child window is open

Authored by davidedmundson on Jul 9 2017, 12:17 AM.



This is meant as a more generic fix for the autohide panels, actually
looking to see what transient windows we have open.

The problem with the current fixes (D6555) being posted is that we
potentially get attentionStatus in a corrupt status as we cache the
value but it might change externally whilst that window is open.

Also saves duplicating code in a bunch of places.

Test Plan

Set autohide
Opened a context menu in task manager didn't autohide, till I closed it
Closing menu whilst keeping mouse in the panel doesn't auto hide it until we move out after.
Hovering over TM tooltip keeps autohide from closing (another fix)

(Need to fix an unrelated bug in AppletAlternativeDialog, it seems it can leak..)

Diff Detail

R120 Plasma Workspace
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Jul 9 2017, 12:17 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 9 2017, 12:17 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik accepted this revision.Jul 10 2017, 9:11 AM
broulik added a subscriber: broulik.


This revision is now accepted and ready to land.Jul 10 2017, 9:11 AM
This revision was automatically updated to reflect the committed changes.