Bug 465595 - 5.27: task manager hover is sluggish
Summary: 5.27: task manager hover is sluggish
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.26.90
Platform: Gentoo Packages Linux
: VHI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 465651 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-11 19:45 UTC by Naxdy
Modified: 2023-02-27 08:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27.0
Sentry Crash Report:


Attachments
Demo using floating panel at bottom of screen (743.77 KB, video/x-matroska)
2023-02-11 19:45 UTC, Naxdy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Naxdy 2023-02-11 19:45:48 UTC
Created attachment 156157 [details]
Demo using floating panel at bottom of screen

SUMMARY
Since the last couple days, the 5.27 branch of icons-only task manager exhibits the problem, that hovering items is more sluggish compared to before. I've recorded a video to showcase what I mean: When I hover over an item, it takes about a second until it gets highlighted - this was not the case before.

When I move the mouse to the very bottom of the screen, the feedback is instant (the flickering of the icons is only present in the Wayland session - but the delay bug exists on both X11 and Wayland).


STEPS TO REPRODUCE
1. Create a panel (floating or regular doesn't matter)
2. Add "Icons-Only Task Manager"
3. Hover over entries

OBSERVED RESULT
It takes ~1 second for the entry to be highlighted

EXPECTED RESULT
Entry is highlighted instantly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
(available in About System)
KDE Plasma Version: 5.27 beta
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Mesa: 22.3.5

ADDITIONAL INFORMATION
-
Comment 1 Bharadwaj Raju 2023-02-12 04:21:51 UTC
Consequence of the fix to https://bugs.kde.org/show_bug.cgi?id=358930 and https://bugs.kde.org/show_bug.cgi?id=347041.

Since the same technique and component is used in Kickoff without impeding fast horizontal switching, I think we can probably fix this without re-breaking those bugs. Will look into it.
Comment 2 Bharadwaj Raju 2023-02-12 04:38:33 UTC
On second thought it may not be as straightforward, since we use a secondary point to get greater filtering reliability that Kickoff doesn't use. Might have to try and detect the slope of movement?
Comment 3 Naxdy 2023-02-12 11:27:14 UTC
Is it possible to implement the delay only if a tooltip / window list is present, or is that nontrivial?
Comment 4 Bharadwaj Raju 2023-02-12 16:55:41 UTC
It is, and really I should've done it from the start. I'll make an MR to do that now. I'm not sure if we can get it into 5.27.0, but the fix should be in 5.27.1 for sure.

If that is fixed then is that sufficient for you to consider the whole bug fixed? Because if a tooltip is open then the delay feels reasonable to me.
Comment 5 Naxdy 2023-02-12 16:57:45 UTC
I have tooltips and window lists disabled personally, so I don't think I'm entirely qualified to comment, but instinctively I'd say yes, a delay there seems reasonable, so you don't accidentally "clip" the neighboring entry when trying to get to the tooltip / a list item.
Comment 6 Bug Janitor Service 2023-02-12 17:09:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1383
Comment 7 Bharadwaj Raju 2023-02-13 15:14:05 UTC
The fix is going to be in 5.27.0 itself. Thank you for testing it before release!
Comment 8 Nate Graham 2023-02-13 16:39:34 UTC
*** Bug 465651 has been marked as a duplicate of this bug. ***
Comment 9 Bharadwaj Raju 2023-02-27 08:00:53 UTC
Git commit 06a9799ab1321ea193cad77735a80372e3da8d71 by Bharadwaj Raju.
Committed on 12/02/2023 at 17:23.
Pushed by bharadwaj-raju into branch 'master'.

applets/taskmanager: Only activate the triangle filter when a tooltip is open

M  +2    -0    applets/taskmanager/package/contents/ui/Task.qml
M  +1    -1    applets/taskmanager/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/commit/06a9799ab1321ea193cad77735a80372e3da8d71
Comment 10 Bharadwaj Raju 2023-02-27 08:01:25 UTC
Git commit d1c24264b8abe353d38af6ea68d33daa857d79d4 by Bharadwaj Raju.
Committed on 12/02/2023 at 17:25.
Pushed by bharadwaj-raju into branch 'Plasma/5.27'.

applets/taskmanager: Only activate the triangle filter when a tooltip is open


(cherry picked from commit 06a9799ab1321ea193cad77735a80372e3da8d71)

M  +2    -0    applets/taskmanager/package/contents/ui/Task.qml
M  +1    -1    applets/taskmanager/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/commit/d1c24264b8abe353d38af6ea68d33daa857d79d4