Bug 379475

Summary: activateLauncherMenu launches wrong launcher with multiple screens
Product: [Plasma] plasmashell Reporter: Harald Sitter <sitter>
Component: generic-multiscreenAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: bshah, chgonzalezg, culinaryelation, david.alejandro.rubio, grahamperrin, jakubby, justin.zobel, m.krasilnikov, nate, notmart, plasma-bugs, postix
Priority: NOR    
Version First Reported In: 5.9.5   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.27
Sentry Crash Report:

Description Harald Sitter 2017-05-03 10:57:20 UTC
shellcoronoa's activateLauncherMenu launches the first launcher it encounters in any panel.

When one is using two screens, both with a launcher, this will result in any of them getting launched rather than the most suitable (the one with the active window).
Comment 1 Justin Zobel 2020-11-08 07:21:52 UTC
Harald can you please confirm if this bug report is still valid against current KDE, thanks.
Comment 2 Harald Sitter 2020-11-09 12:07:47 UTC
Well, KDE being a community I don't think we are particularly buggy. The bug in Plasma is still pretty much the same. The first found applet that is a launcher and has a global shortcut is activated.

https://invent.kde.org/plasma/plasma-workspace/-/blob/master/shell/shellcorona.cpp#L2188
Comment 3 Nate Graham 2021-08-16 23:53:43 UTC
*** Bug 436452 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2021-08-16 23:53:53 UTC
*** Bug 433317 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2021-08-17 01:50:06 UTC
*** Bug 430524 has been marked as a duplicate of this bug. ***
Comment 6 Marco Martin 2021-08-24 12:47:39 UTC
Needs new api from kwin that also specifies the screen you want to open the menu in
Comment 7 Nate Graham 2023-04-21 15:15:07 UTC
That new API was eventually, added and now this works, respecting the active screen as expected