Bug 431935

Summary: Notifications should never appear right under your cursor
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: wishlist CC: aspotashev, kdedev, nicolas.fella, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nate Graham 2021-01-22 15:09:06 UTC
Everything KDE-related from git master as of today.


STEPS TO REPRODUCE
1. Move your cursor above some UI element you want to click on that happens to be in the area of the screen where notifications appear
2. Get a notification
3. Click


OBSERVED RESULT
The notification gets activated, taking you to the sending app, which breaks your focus and takes you away on what you were doing

EXPECTED RESULT
New notifications should not be positioned in a location where the cursor already is, so that clicking will not accidentally trigger a suddenly-appearing notification
Comment 1 Nicolas Fella 2021-01-22 16:28:17 UTC
Do you have a particular solution in mind?

Changing the popup location/behavior based on the cursor location sounds a bit brittle/unexpected to me
Comment 2 Nate Graham 2021-01-22 16:31:51 UTC
I think would prefer if it would position the notification in the next available position that doesn't have a cursor in it.

That is to say, if you imagine that notifications appear in a stack, if item 0 in the stack has my cursor in that area, the notification would appear in position 1 rather than position 0.
Comment 3 Alexander Potashev 2025-04-29 10:04:42 UTC
Alternatively, maybe ignore the click if it happens <100ms after a notification (or something else) appears under mouse pointer?