Bug 527507 - Pinned icons disappear briefly when window moved to another monitor
Summary: Pinned icons disappear briefly when window moved to another monitor
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.8.0
Platform: CachyOS Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen, regression
Depends on:
Blocks:
 
Reported: 2026-10-20 21:30 UTC by bermuda.1137
Modified: 2026-10-23 19:49 UTC (History)
7 users (show)

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


Attachments
Video demonstration of the bug (545.18 KB, video/mp4)
2026-10-20 21:30 UTC, bermuda.1137
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bermuda.1137 2026-10-20 21:30:24 UTC
Created attachment 197428 [details]
Video demonstration of the bug

DESCRIPTION
Pinned icons on the task manager disappear after moving to another monitor. Clicking on another icon in the task manager or waiting a few seconds causes the pinned icon to reappear

STEPS TO REPRODUCE
1. Pin something to the task manager
2. Open it
3. Move it to another monitor

OBSERVED RESULT
Pinned icon disappears from original monitor completely for a while

EXPECTED RESULT
Icon should not disappear

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a terminal window): CachyOS Linux
KDE Plasma Version: 6.8.0
KDE Frameworks Version:  6.31.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
Attached is a video demonstration of the bug
Comment 1 David Redondo 2026-10-21 08:15:40 UTC
I assume you have task manager configured to only show windows of the screen it is on?
Comment 2 bermuda.1137 2026-10-21 08:28:01 UTC
(In reply to David Redondo from comment #1)
> I assume you have task manager configured to only show windows of the screen
> it is on?

Yes, I have that enabled.
Comment 3 Nate Graham 2026-10-21 19:11:09 UTC
If not the same issue as Bug 520961, a similar one.
Comment 4 chris 2026-10-22 07:15:30 UTC
Been banging my head against a wall over this one since 6.8 dropped, and it still happened on 6.8.1, thought I was going crazy because I second guessed if 6.7.5 did this or not.

Anyway, reverting 4a513cce1d320e368c665e54fa9aaf5307d11254 and replacing libtaskmanager.so.6.8.1 fixes it for me
Comment 5 Nate Graham 2026-10-22 13:44:03 UTC
That's https://invent.kde.org/plasma/plasma-workspace/-/commit/4a513cce1d320e368c665e54fa9aaf5307d11254, for completeness.

That said, I cannot reproduce the issue on current git master with a multi-screen setup and a panel set to only show tasks from the current monitor. When I move a window to another monitor, everything seems fine. There must be another hidden triggering condition.
Comment 6 chris 2026-10-22 14:08:40 UTC
(In reply to Nate Graham from comment #5)
> That's
> https://invent.kde.org/plasma/plasma-workspace/-/commit/
> 4a513cce1d320e368c665e54fa9aaf5307d11254, for completeness.
> 
> That said, I cannot reproduce the issue on current git master with a
> multi-screen setup and a panel set to only show tasks from the current
> monitor. When I move a window to another monitor, everything seems fine.
> There must be another hidden triggering condition.

I'm assuming you have panels set up on both monitors? With the same only display on current monitor? For me the repro is 100% reliable, and I was also able to reproduce it on master before I tried looking back at what commit could have introduced the regression.

I actually got the idea to revert what I did from David's comment on 527189.
Comment 7 Nate Graham 2026-10-22 18:05:38 UTC
I have panels on both monitors, yeah. On my secondary monitor, the panel has several pinned apps and is set to only show tasks from its monitor, It works fine when I drag any of the windows on that monitor to another one.
Comment 8 chris 2026-10-22 19:13:22 UTC
So for me I have 3 screens, with a few pins on each panel, if I open a pinned item on the monitor that panel is on and drag that window to another screen, the pin disappears. Reverting the mentioned commit fixes this and 527189, but the fix in master for 527189 seems to have no effect on this one.

My current build that is working right now is v6.8.1 tag with the revert. As stated earlier, master still exhibits the bug as of my comment last night. Are you able to repro this on 6.8.1?
Comment 9 Sam 2026-10-23 08:38:03 UTC
I can reproduce this consistently on 6.8.1, and I think I've found the cause.

STEPS TO REPRODUCE
1. Use two screens, each with its own panel containing an Icons-only Task Manager with "Show only tasks from the current screen" enabled.
2. Pin an app to the panel on screen A (optionally pin it on screen B's panel too).
3. Launch it from screen A's panel, so its window opens on screen A.
4. Move the window to screen B (drag it or use Meta+Shift+Arrow). Don't open or close any other window in the meantime.

OBSERVED RESULT
The pinned icon disappears from screen A's panel. If the app is also pinned on screen B's panel, it shows up there twice (launcher + window). Both fix themselves as soon as any window is opened or closed.

EXPECTED RESULT
The launcher stays on screen A's panel, and on screen B the window takes the launcher's place.

CAUSE
In 6.8, launcher hiding moved into TaskFilterProxyModel::acceptsRow(). That check correctly takes the screen filter into account, but launcher rows are only re-filtered when source rows are inserted/removed or when dataChanged carries AppId or LauncherUrlWithoutIcon (TaskFilterProxyModel::setSourceModel()). Moving a window only changes ScreenGeometry, so the window row is re-filtered but the launcher rows keep their old result: hidden on the screen the window left, still visible on the screen it arrived on.

The virtual desktop and activity filters to have the same issue, but I haven't tested it. Current master adds a ScreenGeometry check in that lambda, but only when filterByCurrentVirtualDesktop is set (see 0cd7539079), so the filterByScreen case still seems to be affected. Also invalidating the filter in that lambda when ScreenGeometry (and VirtualDesktops, IsOnAllVirtualDesktops, Activities) change fixes it for me locally. I'll see if I can open an MR.
Comment 10 Bug Janitor Service 2026-10-23 09:54:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7277
Comment 11 Bug Janitor Service 2026-10-23 09:54:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7277
Comment 12 David Edmundson 2026-10-23 17:38:04 UTC
Git commit 208e6dfca58d8daa6dc2df0b1425dc11d5286340 by David Edmundson, on behalf of Samuel Collins.
Committed on 23/10/2026 at 14:00.
Pushed by davidedmundson into branch 'master'.

libtaskmanager: Re-filter launchers when a window changes screen

Activated launchers are hidden based on whether a matching window passes
the other filters, but launcher rows were only re-evaluated on row
insertion/removal or AppId changes. With filterByScreen enabled, moving a
window to another screen therefore left its launcher hidden on the old
screen and visible (alongside the window) on the new one.

Re-filter when ScreenGeometry changes while filtering by screen.

M  +3    -1    libtaskmanager/taskfilterproxymodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/208e6dfca58d8daa6dc2df0b1425dc11d5286340
Comment 13 Nate Graham 2026-10-23 19:49:09 UTC
Git commit ac22d4c47cba94a1ab4d986bc7cc86992b776795 by Nate Graham, on behalf of Samuel Collins.
Committed on 23/10/2026 at 18:48.
Pushed by ngraham into branch 'Plasma/6.8'.

libtaskmanager: Re-filter launchers when a window changes screen

Activated launchers are hidden based on whether a matching window passes
the other filters, but launcher rows were only re-evaluated on row
insertion/removal or AppId changes. With filterByScreen enabled, moving a
window to another screen therefore left its launcher hidden on the old
screen and visible (alongside the window) on the new one.

Re-filter when ScreenGeometry changes while filtering by screen.
(cherry picked from commit e0032d4378b6f6bc1d4744deba8738ec97b8fc60)

M  +5    -2    libtaskmanager/taskfilterproxymodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/ac22d4c47cba94a1ab4d986bc7cc86992b776795