Bug 366153 - All Window Icons Are Intermittently Become "Active" on Task Manager Falsely
Summary: All Window Icons Are Intermittently Become "Active" on Task Manager Falsely
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.7.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 366384 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-27 05:48 UTC by Mikiya Okuno
Modified: 2016-08-04 22:14 UTC (History)
5 users (show)

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


Attachments
before mouse over: all window icons have same colors as if they are active (79.58 KB, image/png)
2016-07-27 10:55 UTC, pitlochry
Details
after mouse over: window icons are fixed and become inactive if they are actually inactive (82.80 KB, image/png)
2016-07-27 10:56 UTC, pitlochry
Details
video of described behaviour (1.34 MB, video/x-matroska)
2016-07-27 11:04 UTC, pitlochry
Details
icons-only task manager (22.66 KB, image/png)
2016-08-03 10:05 UTC, David Rosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikiya Okuno 2016-07-27 05:48:31 UTC
When working on KF 5.24/KDE Plasma 5.7, window icons on task manager become falsly active intermittently. I mean all window icons have same colors as if they are active. After mouse over, window icons are fixed and become inactive if they are actually inactive.

Reproducible: Sometimes

Steps to Reproduce:
1. Open/close windows.
2. Switch desktop using pager.
3. Make one window full-screen.
etc etc

Actual Results:  
You'll see the problem intermittently under normal operation.

Expected Results:  
Window icon should indicate the actual status.
Comment 1 pitlochry 2016-07-27 07:02:27 UTC
I can confirm this behaviour. It is shown since Plasma 5.7.

It is always reproducible if you have several launchers (kept separate) in the Task Manager and you open them one after the other. Then all window icons have same colors as if they are active.
After mouse over, window icons are fixed and become inactive if they are actually inactive.
Comment 2 Eike Hein 2016-07-27 10:06:03 UTC
Screenshot/video please, "active" is muddy here.
Comment 3 pitlochry 2016-07-27 10:55:00 UTC
Created attachment 100332 [details]
before mouse over: all window icons have same colors as if they are active
Comment 4 pitlochry 2016-07-27 10:56:18 UTC
Created attachment 100333 [details]
after mouse over: window icons are fixed and become inactive if they are actually inactive
Comment 5 pitlochry 2016-07-27 11:04:44 UTC
Created attachment 100334 [details]
video of described behaviour
Comment 6 Eike Hein 2016-07-27 17:15:59 UTC
I can't reproduce this at all so far. We'll have to nail down more details of when/how it happens.
Comment 7 Eike Hein 2016-07-27 21:09:21 UTC
Ah, figured it out!
Comment 8 Eike Hein 2016-07-27 21:14:44 UTC
Git commit 605d34e3ff8007371e013a2a68647b9f3d8b5bac by Eike Hein.
Committed on 27/07/2016 at 21:13.
Pushed by hein into branch 'Plasma/5.7'.

Disable hover event handling until Flow positions delegate.

Delegates pop up at 0,0 until Flow positions them, which can
cause containsMouse to become true, following by the item
being moved out from below the cursor and containsMouse never
going false, because Qt Quick's famously broken hover event
handling can't cope.

We already wait for initial-positioning to signal the task
geometry to the WM, so only start hover event handling then,
too.

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

http://commits.kde.org/plasma-desktop/605d34e3ff8007371e013a2a68647b9f3d8b5bac
Comment 9 David Rosca 2016-08-03 08:24:22 UTC
This patch broke the hover for me (icons-only task manager). Only the first task reacts on focus now.
Comment 10 Eike Hein 2016-08-03 09:57:50 UTC
David, by focus you mean hover? Do you have any more steps to reproduce, info about panel arrangement, ...?
Comment 11 David Rosca 2016-08-03 10:05:34 UTC
Created attachment 100434 [details]
icons-only task manager

Yes, of course hover, sorry.

Hmm, not sure what more I can say, all tasks on the screenshot are launchers and hover works only on first task (firefox).
Comment 12 Eike Hein 2016-08-03 10:11:47 UTC
What Qt version?
Comment 13 David Rosca 2016-08-03 10:12:32 UTC
Qt 5.7.0
Comment 14 Kai Uwe Broulik 2016-08-03 10:13:51 UTC
I have the same with regular Task Manager: launcher tasks do not glow (IconItem active) on hover. When I start to drag a task it starts to glow and then stays this way indefinitely.
Comment 15 Eike Hein 2016-08-03 10:19:22 UTC
Apparently your Flows behave differently from mine. This is technically nice because yours is being less stupid than mine, but makes us have the problem of handling both behaviors.
Comment 16 Eike Hein 2016-08-03 19:23:56 UTC
*** Bug 366384 has been marked as a duplicate of this bug. ***