Bug 470155 - Task manager keeps screencast running even if the tooltip is hidden
Summary: Task manager keeps screencast running even if the tooltip is hidden
Status: RESOLVED DUPLICATE of bug 467426
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.27.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-05-23 08:02 UTC by hexchain
Modified: 2023-06-04 08:22 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***