Firefox Notifications Only On Default Monitor
Categories
(Toolkit :: Alerts Service, enhancement)
Tracking
()
People
(Reporter: megamorphg, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Steps to reproduce:
- Open a window on secondary monitor
- Trigger notification
Actual results:
Notification appears on primary monitor
Expected results:
Notification appears on same monitor as window that calls it.
Or have an option to set default notification monitor (so can have notifications always spawn in a specific monitor).
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Hi Ahmed, can you share your monitor arrangement? E.g., does it look like this?
+---------------+ +---------------+
| | | |
| | | |
| Primary | | Secondary |
| | | |
| | | |
+---------------+ +---------------+
Or like this?
+---------------+
| |
| |
| Primary |
| |
| |
+---------------+
+---------------+
| |
| |
| Secondary |
| |
| |
+---------------+
Or is the secondary monitor on the left/top, and the primary monitor is on the bottom/right?
It looks like we're moving the alert to screen.availLeft + screen.availWidth - window.outerWidth
and screen.availTop + screen.availHeight - window.outerHeight
, minus a small margin. My understanding is the Screen API is not aware of multiple monitors, and these properties represent the combined width/height of the screen space. So I think that means notifications end up on whichever screen is bottommost and rightmost. I haven't had time to test this yet, though.
Comment 3•2 years ago
|
||
This is likely to do with the XUL alerts service fallback backend.
Reporter | ||
Comment 4•2 years ago
|
||
"notifications end up on whichever screen is bottommost and rightmost"
That would make sense! My monitor configuration is primary is on bottom and secondary on top.
However, I stopped using this XUL alerts and am starting to get used to Windows native notifications since it piles up if I miss the notifications (without having to do chrome styling and piling up on screen).
Honestly, may be fine to close this since the behavior is understood and since this alert system is being phased out.
Description
•