Bug 451090

Summary: When each screen has a Notifications widget, notifications appear on non-primary monitor on Wayland
Product: [Plasma] plasmashell Reporter: boatward_sondeli
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: gritty.flame0471, julien.dlq, kde, nate, sephiroth_pk, severin.hamader
Priority: NOR Keywords: multiscreen, wayland-only
Version First Reported In: 5.24.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video of the bug
Video of a workaround

Description boatward_sondeli 2022-03-03 15:35:53 UTC
Notifications not showing on primary monitor on wayland.
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Set primary screen on wayland
2. Add two system trays
3. Receive a notification

OBSERVED RESULT
The notification should show on the primary screen. This it how it works on X11.

EXPECTED RESULT
The notification appears on the secondary screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Álvaro M. 2024-12-11 13:48:17 UTC
Created attachment 176524 [details]
Video of the bug

This is a video showing how the notifications still appear on the wrong display.
Comment 2 Álvaro M. 2025-02-23 18:12:41 UTC
Update: This happens only when both displays have a [default] panel. The notification goes to the display with the last created panel, no matter if the notification was configured to go to the primary display or not.

In other words, a workaround is to remove the panel from the primary display, save, and then create a new one in that same primary display. This way, KDE displays the notifications in the last created panel: the primary one.
Comment 3 Álvaro M. 2025-02-23 18:22:20 UTC
Created attachment 178779 [details]
Video of a workaround
Comment 4 Julien Delquié 2025-02-23 20:54:58 UTC
Big thanks for this workaround!
Comment 5 Riccardo Robecchi 2025-03-10 17:46:09 UTC
The same happens on X11 as well on Plasma 6.