Bug 421093

Summary: Right clicking on notification body moves to bottom right
Product: [Plasma] plasmashell Reporter: Unknown <null>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.18.5   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Demonstration of the bug.

Description Unknown 2020-05-06 00:14:50 UTC
Created attachment 128188 [details]
Demonstration of the bug.

SUMMARY
Right-clicking in the notification body causes it to stop avoiding other windows and revert back to the bottom right corner.

STEPS TO REPRODUCE
1. Open the notifications popup (easiest if you pin it)
2. `notify-send "Title" "Body"`
3. Right-click on the notification body

OBSERVED RESULT
Notification drops to the bottom right corner.

EXPECTED RESULT
The notification stays above the popup of the notifications bar.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Kai Uwe Broulik 2020-05-06 08:07:58 UTC
The notification popup dodges whatever other Plasma dialog has focus. When you now right-click the notification, it becomes focus, and no longer tries to evade the popup behind it.
Comment 2 Unknown 2020-05-06 08:15:25 UTC
That makes sense, but it only happens with a right click, not a left click. Shouldn't left click exhibit the same behaviour?
Or a right click on the title bar?

(And I actually would prefer if the focus doesn't change - it is extremely jarring to me when elements move whilst I'm looking at them)
Comment 3 Kai Uwe Broulik 2020-05-06 08:32:58 UTC
No. A notification popup itself doesn't take focus (unless there's a quick reply text field), but the menu will.