Bug 461492 - If a System Tray popup is pinned open such that it displaces notifications, notification moves itself when closed
Summary: If a System Tray popup is pinned open such that it displaces notifications, n...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-06 10:17 UTC by Patrick Silva
Modified: 2023-01-01 00:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27
Sentry Crash Report:


Attachments
screen recording (459.93 KB, video/webm)
2022-11-06 10:18 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-11-06 10:17:33 UTC
SUMMARY
Can reproduce on Arch Linux (Plasma 5.26.2) and neon unstable.

STEPS TO REPRODUCE
1. click on the button used to show the hidden systray icons and activate its 'Keep open' feature
by clicking on the button in the upper right corner
2. open Spectacle and save the screenshot
3. click 'Annotate' button of the Plasma notification

OBSERVED RESULT
the notifcation moves itself on the screen and then disappears.
Please watch the attached screen recording.

EXPECTED RESULT
the notification disappears without moving itself on the screen

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Graphics Platform: Wayland
Comment 1 Patrick Silva 2022-11-06 10:18:03 UTC
Created attachment 153516 [details]
screen recording
Comment 2 Patrick Silva 2022-11-06 10:36:10 UTC
Another way to reproduce:
1. click on the button used to show the hidden systray icons and activate its 'Keep open' feature
by clicking on the button in the upper right corner
2. disconnect your network
3. close the notification by clicking on its 'X' button
Comment 3 Nate Graham 2022-11-07 19:19:34 UTC
Can reproduce.
Comment 4 Bug Janitor Service 2022-12-08 12:58:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2426
Comment 5 Nate Graham 2023-01-01 00:36:51 UTC
Git commit 64492d5812c89a4f502b8cdae6aa5a4960c8b56a by Nate Graham, on behalf of Bharadwaj Raju.
Committed on 01/01/2023 at 00:36.
Pushed by ngraham into branch 'master'.

applets/notifications: Fix notifications jumping around when dialogs close or lose focus

Keep around the last non-notification focused Plasma dialog, so we can maintain
stable notification positioning even if we have a Plasma dialog which loses focus
but stays visible (think pinned System Tray applets).

This also fixes notifications jumping down on close, since now the dialog used to
calculate the notification popups's offset is never itself a NotificationPopup.
Related: bug 449085, bug 426187
FIXED-IN: 5.27

M  +15   -7    applets/notifications/package/contents/ui/global/Globals.qml

https://invent.kde.org/plasma/plasma-workspace/commit/64492d5812c89a4f502b8cdae6aa5a4960c8b56a