Bug 429702 - Notifications are placed close to the middle of the screen
Summary: Notifications are placed close to the middle of the screen
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 22:02 UTC by Vlad Zahorodnii
Modified: 2020-12-07 15:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
vlad.zahorodnii: Wayland+


Attachments
screenshot that demonstrates the problem (2.95 MB, image/png)
2020-11-26 22:02 UTC, Vlad Zahorodnii
Details

Note You need to log in before you can comment on or make changes to this bug.
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.