Bug 429702

Summary: Notifications are placed close to the middle of the screen
Product: [Plasma] plasmashell Reporter: Vlad Zahorodnii <vlad.zahorodnii>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR Flags: vlad.zahorodnii: Wayland+
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot that demonstrates the problem

Description Vlad Zahorodnii 2020-11-26 22:02:04 UTC
Created attachment 133678 [details]
screenshot that demonstrates the problem

SUMMARY
Recently, a few months ago, there was a change to improve the placement of notification windows on ultra-wide monitors.

With the proposed change, notifications stay close to the ring bell system tray icon if the screen has some certain aspect ratio.

However, after re-building plasma from sources today, I've noticed that notification windows are placed on my screen, which has an aspect ratio of 16:9, as if it's an ultra-wide monitor, see the attached screenshot.

The problem with doing so, is that notification windows obscure whatever windows are in the middle of the screen.
Comment 1 Vlad Zahorodnii 2020-11-26 22:03:15 UTC
Info about screens in my setup:

Screen 0:
---------
Name: DP-1
Geometry: 0,0,1920x1080
Scale: 2
Refresh Rate: 59.997

Screen 1:
---------
Name: DP-2
Geometry: 1920,0,1080x1920
Scale: 2
Refresh Rate: 59.997
Comment 2 Nate Graham 2020-12-01 02:06:57 UTC
The problem seems to be that your panel isn't automatically spanning the full width of the monitor, which causes the tray to be closer to the center, so the notifications show up close to it.

Was this panel setup intentional, or not? If not, that's probably the bug.
Comment 3 Vlad Zahorodnii 2020-12-06 09:19:45 UTC
Yes, the panel doesn't span the entire width of the screen intentionally.
Comment 4 Nate Graham 2020-12-07 15:08:07 UTC
Then I think this is intentional. :) No matter where the notifications appear, they're going to obscure *something*. If you're dissatisfied with the positioning here based on your panel width, I would recommend overriding the position to something else.