Bug 469774

Summary: When closing Kicker, hovering category/application is not following mouse cursor
Product: [Plasma] plasmashell Reporter: esperluette08
Component: Application Menu (Kicker) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 5.27.4   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Cursor on "Settings" doesn't select this category after re-opening Kicker

Description esperluette08 2023-05-15 01:32:16 UTC
Created attachment 158956 [details]
Cursor on "Settings" doesn't select this category after re-opening Kicker

SUMMARY
When hovering (with mouse) a category item (on right) or in the apps grid, then closing kicker with Escape key (without moving cursor) then opening again with Meta key, the category selected is "Favourites" and the first app in the grid is hovered, ignoring mouse position. The tooltip of the app below the cursor is shown even if the app is not hovered.

STEPS TO REPRODUCE
1. Open Kicker, move the mouse cursor above any app (but not the first) in the grid, or on any category. Then don't move mouse.
2. Close Kicker with Esc (cannot reproduce it using Meta key)
3. Re-open Kicker with Meta key

OBSERVED RESULT
The category selected is always "Favourites", and the first app in the grid is hovered.

EXPECTED RESULT
If the mouse is on a category, it should be selected. If the mouse if on a app in the grid, this app should be hovered.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon Live (20230504-0714)
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics: X11 on Neon, also been reproduced with Wayland on Manjaro
Comment 1 esperluette08 2023-05-15 02:03:43 UTC
Also, when reducing animation speed and moving the mouse fast to any category on the list, or any application in the grid, during the opening of Kicker, may hovering the wrong category until the mouse is moved.

Checking every ~1s the position of the mouse, or once Kicker has finished the opening animation, would ensure the correct category/application is hovered by the cursor.
Comment 2 Nate Graham 2023-05-15 17:47:34 UTC
I'm afraid the issue reported in the description is intentional. We got bug reports about it being weird to immediately switch the category based on the cursor position before it's moved at all.