Bug 455021 - Tooltip with black window preview when I hover over a task on Wayland
Summary: Tooltip with black window preview when I hover over a task on Wayland
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
: 456881 461169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-08 10:21 UTC by Patrick Silva
Modified: 2022-10-31 16:24 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (25.76 KB, image/png)
2022-06-08 10:21 UTC, Patrick Silva
Details
screenshot of Plasma 5.26 beta (14.79 KB, image/png)
2022-09-17 18:34 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-06-08 10:21:20 UTC
STEPS TO REPRODUCE
1. use Wayland session
2. make sure 'Display informational tooltips on mouse hover' option is checked in General Behavior KCM
3. open a window
4. hover over the task in the task manager

OBSERVED RESULT
Tooltip shows up with black window preview. Please watch the attached screenshot.

EXPECTED RESULT
tooltip with window preview

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Graphics Platform: Wayland
Comment 1 Patrick Silva 2022-06-08 10:21:44 UTC
Created attachment 149552 [details]
screenshot
Comment 2 Nate Graham 2022-06-08 19:16:14 UTC
Seems like a weird PipeWire or KWin issue. Cannot reproduce.
Comment 3 Nate Graham 2022-07-19 15:52:51 UTC
*** Bug 456881 has been marked as a duplicate of this bug. ***
Comment 4 guimarcalsilva 2022-07-22 05:46:23 UTC
I have seen this happen on a Wayland session too. It only seems to happen sometimes. I'm using AMD graphics.
Comment 5 Ionuț Leonte 2022-08-21 13:21:16 UTC
I've had this problem on my Gentoo installation for quite a while now. I finally solved it by rebuilding `xdg-desktop-portal` and `plasma-workspace` with the `screencast` USE flag enabled.

For `xdg-desktop-portal` this controls the `--enable-pipewire`/`--disable-pipewire` parameter to `configure`.

For `plasma-workspace` it seems to control the following ebuild snippet:

       # TODO: try to get a build switch upstreamed
        if ! use screencast; then
                sed -e "s/^pkg_check_modules.*PipeWire/#&/" -i CMakeLists.txt || die
        fi

I assume on other distributions these packages are built with similar configs/modifications applied.
Comment 6 Patrick Silva 2022-09-17 18:34:42 UTC
Created attachment 152169 [details]
screenshot of Plasma 5.26 beta

On Plasma 5.26 beta the window preview is often blank, as seen in the screenshot attached to this comment.

Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 7 Patrick Silva 2022-10-30 01:23:49 UTC
*** Bug 461169 has been marked as a duplicate of this bug. ***
Comment 8 Real Name 2022-10-30 17:28:24 UTC
Running plasmashel from the command line, I get the following message:

file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/PipeWireThumbnail.qml:11:1: module "org.kde.pipewire" is not installed

Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 9 Real Name 2022-10-30 17:39:46 UTC
Oh, OK, installing kpipewire solves the issue for me. Definitely a Fedora bug as it had to be pulled automatically when I updated.
Comment 10 Nicolas Fella 2022-10-31 12:27:30 UTC
For Neon/Ubuntu/Debian users: Please check whether qml-module-org-kde-pipewire is installed
Comment 11 Patrick Silva 2022-10-31 12:33:23 UTC
(In reply to Nicolas Fella from comment #10)
> For Neon/Ubuntu/Debian users: Please check whether
> qml-module-org-kde-pipewire is installed

It's installed on my neon unstable, and now the previews work.
Comment 12 Nate Graham 2022-10-31 13:32:01 UTC
Nice find! Please bug your distros to install that package by default.
Comment 13 Ralf Jung 2022-10-31 13:49:55 UTC
Ah yes that helps, thanks!

It's not entirely smooth though... when the tooltip shows up, it first has no preview, and then after a short while (maybe 0.1-0.3s) the preview appears. It looks better on X11 where the preview appears immediately.
Comment 14 Patrick Silva 2022-10-31 16:17:48 UTC
(In reply to Ralf Jung from comment #13) 
> It's not entirely smooth though... when the tooltip shows up, it first has
> no preview, and then after a short while (maybe 0.1-0.3s) the preview
> appears. It looks better on X11 where the preview appears immediately.

Can confirm on neon unstable. Please file a bug.
Comment 15 Nate Graham 2022-10-31 16:24:54 UTC
The animation is currently intentional, to disguise the fact that we wouldn't figure out a clean way to make it appear instantly.