Bug 426913 - [wayland] - Window thumbnail not working
Summary: [wayland] - Window thumbnail not working
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 19:02 UTC by tromzy
Modified: 2020-10-25 09:48 UTC (History)
3 users (show)

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


Attachments
Window thumbnail not working on Wayland (341.69 KB, image/png)
2020-09-23 19:02 UTC, tromzy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tromzy 2020-09-23 19:02:42 UTC
Created attachment 131889 [details]
Window thumbnail not working on Wayland

SUMMARY
I installed Plasma 5.19.90 on Archlinux, and one of the new features of this release is the support for window thumbnails on Wayland. unfortunately, it does not work on my computer. I enabled thumbnails in Latte-dock and the thumbnail does not show the window content (see attached file).

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-09-24 00:30:28 UTC
On my Arch running Plasma 5.20 beta, tooltips do not show the preview of the windows and make kwin_wayland to crash.
Comment 2 Vlad Zahorodnii 2020-09-24 12:13:41 UTC
>the preview of the windows and make kwin_wayland to crash.
is there any chance that you could attach the backtrace of the crash to this bug report?
Comment 3 Patrick Silva 2020-09-24 12:37:59 UTC
(In reply to Vlad Zahorodnii from comment #2)
> >the preview of the windows and make kwin_wayland to crash.
> is there any chance that you could attach the backtrace of the crash to this
> bug report?

reported as bug 425869
Comment 4 tromzy 2020-09-28 13:28:02 UTC
I just discovered that window thumbnail does not work with Latte-dock, which I am using. I tried with a regular Plasma panel and thumbnails work ! So the problem seems to be on Latte's side.
Comment 5 Christoph Feck 2020-09-28 18:22:56 UTC
Reassigning for investigation.
Comment 6 Michail Vourlakos 2020-09-28 18:39:37 UTC
which Latte version?
Comment 7 Michail Vourlakos 2020-09-28 18:40:50 UTC
2. Plasma panels with plasma taskmanagers do they provide task previews under wayland? are you sure?
Comment 8 AK-47 2020-10-01 12:04:17 UTC
I can reproduce the situation Patrick was talking about. Hovering over the icon in the task bar (for the window thumbnail) immediately makes the entire Plasma session crash under a Fedora 33 (beta) install, Plasma 5.19.90 Wayland session.
Comment 9 tromzy 2020-10-16 16:50:07 UTC
So, since the thumbnails work fine on a regular Plasma panel, should I close this bug report ?
Comment 10 Claudius Ellsel 2020-10-16 19:03:02 UTC
(In reply to Patrick Silva from comment #1)
> On my Arch running Plasma 5.20 beta, tooltips do not show the preview of the
> windows and make kwin_wayland to crash.

I also have the problem of no Window thumbnails for the Plasma icons only task manager on Wayland. I created https://bugs.kde.org/show_bug.cgi?id=427826 for it.
Comment 11 Michail Vourlakos 2020-10-25 09:48:15 UTC
Git commit 839980192d1608134c40735b8d75fd2ccd832e0f by Michail Vourlakos.
Committed on 25/10/2020 at 09:43.
Pushed by mvourlakos into branch 'master'.

wayland:enable previews for Plasma 5.20

M  +3    -2    plasmoid/package/contents/ui/main.qml
A  +33   -0    plasmoid/package/contents/ui/previews/PipeWireThumbnail.qml     [License: LGPL (v2+)]
A  +33   -0    plasmoid/package/contents/ui/previews/PlasmaCoreThumbnail.qml     [License: GPL (v2+)]
M  +5    -15   plasmoid/package/contents/ui/previews/ToolTipInstance.qml

https://invent.kde.org/plasma/latte-dock/commit/839980192d1608134c40735b8d75fd2ccd832e0f