Bug 527229 - Hide other windows when hovering over tooltips is broken
Summary: Hide other windows when hovering over tooltips is broken
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.7.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-16 19:12 UTC by brady.greenwood
Modified: 2026-10-23 17:20 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brady.greenwood 2026-10-16 19:12:14 UTC
DESCRIPTION
When (a) "Show small window previews when hovering over tasks" is *disabled* and (b) "Hide other windows when hovering over tooltips" is *enabled*, windows will only be hidden on the *first* tooltip hovered over. When hovering over a second (and subsequent) tooltip(s) the windows will animate disappearing, but then reappear immediately, resulting in a flicker and no windows being hidden. If the target window is below other windows, it will remain obscured.

STEPS TO REPRODUCE
1. Disable 'Appearance/Show small window previews when hovering over tasks'
2. Enable 'Appearance/Hide other windows when hovering over previews'
3. Set 'Behavior/Group' to 'By program name'
4. Open multiple windows of any application (e.g., kwrite)
5. Hover over the task icon and hover over a tooltip.
6. Without dismissing the tooltip, hover over a second window tooltip.

OBSERVED RESULT

Windows will be hidden on the first tooltip hover (5), but hovering over other tooltips keep the windows obscured.

EXPECTED RESULT

The target window of the tooltip is the only visible window when hovering over a given tooltip.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
Comment 1 cwo 2026-10-20 13:28:18 UTC
Can reproduce. Also happens on 6.7, and while I think I tested this at some point, I'm not 100% sure it ever worked.
Comment 2 Bug Janitor Service 2026-10-20 16:04:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/4095
Comment 3 cwo 2026-10-21 11:07:07 UTC
Git commit f579c260a952791cb2e82df710bc286f55374712 by Christoph Wolk.
Committed on 21/10/2026 at 10:50.
Pushed by cwo into branch 'master'.

applets/taskmanager: fix highlight effect signal order issue

When the highlight effect is enabled, task manager sends Kwin
instructions to highlight a window when a tooltip is hovered, and
to clear it if it is not hovered. This works fine, but only as long
as the unhover signal is always emitted before the hover signal for a
different window. If not, when moving between tooltips, it will flash
the second window and immediately unhighlight it when the previous
tooltip sends its unhover signal. This can happen rarely with thumbnails
enabled (as there is a safety area between the tooltips that usually
gives enough time to get the signals in order), but is trivial to
trigger if the effect is enabled without thumbnails.

Instead, store the last set of window ids that are highlighted, and
cancel the highlight effect only if an unhover event actually applies to
the current highlight. This reimplements parts of !2816, which also
handled the signal race as part of a larger change that was never
merged, in a more targeted fashion.
FIXED-IN: 6.8.2

M  +8    -0    applets/taskmanager/qml/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/f579c260a952791cb2e82df710bc286f55374712
Comment 4 cwo 2026-10-22 09:48:42 UTC
Git commit 9a9c28f925e7caa4dafab75146b011e9e9ca8a5d by Christoph Wolk.
Committed on 22/10/2026 at 09:22.
Pushed by cwo into branch 'Plasma/6.8'.

applets/taskmanager: fix highlight effect signal order issue

When the highlight effect is enabled, task manager sends Kwin
instructions to highlight a window when a tooltip is hovered, and
to clear it if it is not hovered. This works fine, but only as long
as the unhover signal is always emitted before the hover signal for a
different window. If not, when moving between tooltips, it will flash
the second window and immediately unhighlight it when the previous
tooltip sends its unhover signal. This can happen rarely with thumbnails
enabled (as there is a safety area between the tooltips that usually
gives enough time to get the signals in order), but is trivial to
trigger if the effect is enabled without thumbnails.

Instead, store the last set of window ids that are highlighted, and
cancel the highlight effect only if an unhover event actually applies to
the current highlight. This reimplements parts of !2816, which also
handled the signal race as part of a larger change that was never
merged, in a more targeted fashion.
FIXED-IN: 6.8.2


(cherry picked from commit c65c9f55ada91ab3806a5743d65a44de2819fa23)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +8    -0    applets/taskmanager/qml/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/9a9c28f925e7caa4dafab75146b011e9e9ca8a5d