Bug 479083

Summary: Window thumbnails are upside down in Task Manager and Spectacle
Product: [Frameworks and Libraries] KPipeWire Reporter: Fernando M. Muniz <fernandommuniz>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: major CC: aleixpol, bizyaev, jf, msmafra, nate, qydwhotmail, tim
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=480378
Latest Commit: Version Fixed In: 6.0
Sentry Crash Report:
Attachments: This image shows the taskbar's "window preview" being displayed upside-down.

Description Fernando M. Muniz 2023-12-27 16:48:53 UTC
Created attachment 164480 [details]
This image shows the taskbar's "window preview" being displayed upside-down.

The issue is that the preview/peek window is mirrored upside-down.
Notice the Discover icon.
Comment 1 Ilya Bizyaev 2024-01-12 22:21:07 UTC
Interestingly, the thumbnails are not upside down in the Alt+Tab window switcher.

Operating System: openSUSE Tumbleweed 20240111
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.6.10-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce RTX 4070/PCIe/SSE2
Comment 2 Fernando M. Muniz 2024-01-12 23:06:53 UTC
Perhaps a software rendering issue?

Operating System: Fedora Linux 40
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1
Kernel Version: 6.7.0-0.rc8.20240104gitac865f00af29.64.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 5 × Intel® Core™ i5-L16G7 CPU @ 1.40GHz
Memory: 7.6 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: SAMSUNG ELECTRONICS CO., LTD.
Product Name: 767XCL
System Version: P07AJD
Comment 3 Ilya Bizyaev 2024-01-14 19:40:04 UTC
I have the same problem when recording videos with Spectacle, so the problem is most likely in KPipeWire
Comment 4 Fernando M. Muniz 2024-01-15 08:15:02 UTC
This issue persists on version 5.92.0

I've noticed that it's actually both mirrored and upside-down, instead of just one of them.
Comment 6 Nate Graham 2024-01-16 23:28:19 UTC
*** Bug 479759 has been marked as a duplicate of this bug. ***
Comment 7 Ilya Bizyaev 2024-01-16 23:29:58 UTC
No, that's my commit, it's for a different issue :) This one I don't know how to fix yet.
Comment 8 Nate Graham 2024-01-18 00:27:56 UTC
Oops, sorry.
Comment 9 Ilya Bizyaev 2024-01-25 11:08:44 UTC
This somehow got fixed with https://invent.kde.org/plasma/kwin/-/merge_requests/5037 for me. My guess is that NVIDIA supports `DRM_FORMAT_RGBA8888` while other GPUs don't, which is the format KWin was trying to set on the window captures whenever supported, but it was incorrectly flipped somewhere along the way.