Bug 394934 - Application menu does not launch when focus stealing prevention is high or extreme
Summary: Application menu does not launch when focus stealing prevention is high or ex...
Status: RESOLVED DUPLICATE of bug 336134
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) (show other bugs)
Version: 5.13.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-02 01:59 UTC by rlk
Modified: 2023-04-11 20:02 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rlk 2018-06-02 01:59:59 UTC
With focus stealing prevention set to High or Extreme, and focus policy set to Focus Follows Mouse - Mouse Precedence, clcking on the Application Menu does not normally launch the application menu.  I have not tested other policies to which focus stealing prevention applies (there's no problem using Focus Under Mouse, but focus stealing prevention does not apply to that policy).

If FSP is set to High, and focus is removed from any existing window (e. g. by clicking on empty space on the desktop), it is possible to launch the application menu.  It is not possible to do so if FSP is set to Extreme (which as aside I would really like to do, because even set to High, LibreOffice manages to steal focus every now and again in the process of opening or saving a very large and complex document; I find Medium or below to be completely unacceptable).

On occasion, the application menu appears to launch and inmediately disappear, suggesting that it expects to receive focus immediately upon launch and dismisses itself when it finds itself without having focus yet.

Other panel applets, such as the Device Notifier, launch successfully, leading me to believe that this is not an issue with KWin's handling of focus stealing prevention (ref. bug 377914).
Comment 1 rlk 2018-06-09 01:27:52 UTC
Note that this behavior is not new.
Comment 2 Øystein Steffensen-Alværvik 2018-08-23 09:56:27 UTC
Reproducable on 5.13.4.
Comment 3 rlk 2018-08-23 12:13:13 UTC
Interestingly, if I launch it via the "windows" key (vs. clicking on the icon in the panel), the application menu does launch in either high or extreme focus stealing prevention.
Comment 4 Øystein Steffensen-Alværvik 2018-08-23 14:04:02 UTC
For me it doesn't launch with the Win key.
Comment 5 Øystein Steffensen-Alværvik 2018-08-23 14:09:12 UTC
Affects KRunner too.
Comment 6 Jaime Torres 2018-09-09 09:26:31 UTC
I use the following rule that prevents 'the application menu appears to launch and immediately disappear'.

Save the following content into a file <whatever>.kwinrule and import the rule
[plasmashell]
Description=plasmashell
clientmachine=localhost
clientmachinematch=0
fsplevel=2
fsplevelrule=2
title=Plasma
titlematch=0
wmclass=plasmashell plasmashell
wmclasscomplete=true
wmclassmatch=1

Perhaps this rule (or a similar one) should come pre-installed.
Comment 7 Jaime Torres 2018-09-09 09:46:47 UTC
Probably a duplicate of https://bugs.kde.org/show_bug.cgi?id=336134
Comment 8 Patrick Silva 2018-09-16 20:50:51 UTC
*** Bug 398489 has been marked as a duplicate of this bug. ***
Comment 9 Patrick Silva 2018-09-17 13:55:36 UTC

*** This bug has been marked as a duplicate of bug 336134 ***