[Notifications] Hide popups when expanded

Authored by broulik on Aug 9 2019, 8:14 PM.


Group Reviewers

Unfortunately there is no real way for us to tell when the System Tray popup is open but we can at least hide the popups when the plasmoid itself is expanded.
This avoids the popups getting in the way of the notification history controls in the popup.

Test Plan

I'd say 5.16 branch
notify-send foo bar -t 0
Opened notification plasmoid in systray, popup hid, closed it, popup appeared again
Timeout for notification popup stops when it hides and restarts when it shows up again

Diff Detail

R120 Plasma Workspace
Lint Skipped
Unit Tests Skipped
broulik created this revision.Aug 9 2019, 8:14 PM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 9 2019, 8:14 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Aug 9 2019, 8:14 PM

This isn't necessary when you have the pop-ups' position customized so they wouldn't actually overlap with the system tray. I wouldn't fade them out in that case.

For the default case, this works, but it would definitely be nice if the pop-ups could hide (or better yet, scoot away) when the system tray popup is open with any other applets too.

broulik abandoned this revision.Sep 16 2019, 10:26 AM