Bug 470155

Summary: Task manager keeps screencast running even if the tooltip is hidden
Product: [Plasma] plasmashell Reporter: hexchain <kde>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, nate, qydwhotmail
Priority: NOR Keywords: wayland
Version: 5.27.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description hexchain 2023-05-23 08:02:42 UTC
SUMMARY
After bringing a window forward by clicking on a task manager item and leaving the mouse pointer there, plasmashell does not show a window thumbnail tooltip, but the underlying screencast session keeps running.

STEPS TO REPRODUCE
1. Open some windows. Ideally, also open qpwgraph to visualize PipeWire connections
2. Move the mouse pointer to the task manager, click on an item to open another window, and leave the pointer there

OBSERVED RESULT
The thumbnail window may briefly appear, but in qpwgraph, the screencast connection exists until the mouse pointer moves away.

EXPECTED RESULT
The screencast connection may need to be closed as soon as the window thumbnail disappears.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.3-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
In my system, this running screencast connection triggers a lot of logs in the journal like these:

kwin_wayland[1312]: kwin_screencast: Dropping a screencast frame because the compositor is slow

Makes me think that it affects system performance to some extent, but neither kwin_wayland nor pipewire uses any noticeable CPU or GPU time (but why does it think the compositor is too slow?).
Comment 1 Nate Graham 2023-05-23 17:43:28 UTC
Probably does affect performance, yeah.
Comment 2 Fushan Wen 2023-05-24 13:02:34 UTC
Can be fixed by setting fd but the idea was rejected before
Comment 3 Nate Graham 2023-05-24 15:46:29 UTC
Where? Maybe it's worth revisiting that.
Comment 4 Fushan Wen 2023-06-04 08:03:30 UTC
May be already fixed in 5.27.6. Cannot reproduce now.
Comment 5 Fushan Wen 2023-06-04 08:22:58 UTC
Can reproduce, but it's caused by the triangle filter.

*** This bug has been marked as a duplicate of bug 467426 ***