Bug 489776 - "Focus Follows Mouse" focus modes are not compatible with floating widgets on a not-always-visible Panel
Summary: "Focus Follows Mouse" focus modes are not compatible with floating widgets on...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 6.1.1
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 491285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-05 09:21 UTC by sulfinu
Modified: 2025-03-05 11:40 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sulfinu 2024-07-05 09:21:19 UTC
I'm trying to use the mouse to operate the (main) panel and it is not possible to use it inside the tray or the app launcher because the panel looses focus and hides them.

STEPS TO REPRODUCE
1. Configure the (main) panel to be floating and for visibility choose any option, except for "Always visible".
2. If you click on the tray revealing icon (looks like a ^) or the app launcher icon (Plasma badge) you'll notice the pop-up panels have a gap of several pixels between them and the base panel.
3. Try to move the mouse inside the tray or the app laucher.

OBSERVED RESULT
The pop-ups go away before the mouse reaches them, most probably because when the mouse pointer reaches the gap, the panel looses focus and hides away the pop-up panels (as well as itself in some visibility settings).

EXPECTED RESULT
To be able to operate inside the tray or the app laucher with the mouse.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.7-gentoo (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
The focus policy is "Focus follows mouse (mouse precedence)", should it matter.
Comment 1 Nate Graham 2024-07-27 22:54:25 UTC
> The focus policy is "Focus follows mouse (mouse precedence)", should it matter.
Yep, that does matter. I was about to ask about it.

Can confirm the issue.
Comment 2 sulfinu 2024-07-29 12:04:13 UTC
Then I recommend eliminating the gap between the base floating panel and its pop-up panels.

The gap surrounding the floating panel is purely cosmetic, anyway: you can move the mouse pointer or even click in this gap between a floating panel and the closest screen edge and you'll notice it DOES have effect, as if the pointer was inside the panel.
Comment 3 Nate Graham 2024-08-05 18:53:51 UTC
*** Bug 491285 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2024-08-28 13:32:11 UTC
Can no longer reproduce the issue with current git master; must have gotten fixed recently.
Comment 5 sulfinu 2024-09-27 16:02:57 UTC
Verified on version 6.1.5.
Comment 6 sulfinu 2024-09-27 16:08:46 UTC
...Damn, wrong.
I was using the "avoid windows" visibility for the panel and got fooled because the panel was not trying to hide itself. On a desktop that has a maximized window (and the panel needs to hide), this bug reproduces very well.
Comment 7 Niccolò Venerandi 2025-03-04 14:04:09 UTC
I can also confirmed that the reported bug does not happen on master, even with a window open underneath the panel (and a gap between the applet and the panel). If you can still reproduce, please upload a recording for more info!
Comment 8 sulfinu 2025-03-05 11:40:59 UTC
Well, under
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.16-gentoo (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Graphics

having the main panel having an "Avoid windows" visibility, floating style and with a focus policy set as "focus follows mouse (mouse precedence)", if you make the panel visible by moving the pointer to the screen edge, where an existing window prevents it being shown permanently, and then click on the KDE logo (the app launcher)... well, good luck in choosing an app to launch, if you can.