Bug 483097

Summary: [Wayland] Wallpaper previews sometimes take aspect ratio from a monitor other than the one they will be applied to
Product: [Plasma] plasmashell Reporter: Unknown <null>
Component: Image & Slideshow wallpaper pluginsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kdedev, nate, notmart, qydwhotmail
Priority: NOR Keywords: multiscreen, qt6, wayland-only
Version First Reported In: 6.0.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.0
Sentry Crash Report:
Attachments: A screenshot showing the wrong wallpaper previews size

Description Unknown 2024-03-10 10:59:42 UTC
Created attachment 166859 [details]
A screenshot showing the wrong wallpaper previews size

STEPS TO REPRODUCE
1. In a multi monitor setup, check which is set as the primary
2. right click on the primary monitor's desktop and open the desktop and wallpaper settings
3. notice the wallpaper previews are in the size and rotation of the other monitor, in a dual monitor setup
OR
1. In a multi monitor setup, check which is set as the primary
2. launch or set a program to full screen from the primary display
3. notice how it launches in fullscreen on the other monitor, in a dual monitor setup

OBSERVED RESULT
In some cases like the desktop and wallpaper setting, the set primary monitor is ignored

EXPECTED RESULT
The primary monitor setting is respected, a full screen program should open in fullscreen on the same monitor

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
this is a new bug introduced in plasma 6, it was not happening in the beta 1 or plasma 5.27
Comment 1 Fushan Wen 2024-03-14 15:35:02 UTC
Cannot reproduce on X11. Are you on Wayland?
Comment 2 Unknown 2024-03-14 17:01:01 UTC
(In reply to Fushan Wen from comment #1)
> Cannot reproduce on X11. Are you on Wayland?

I should have specified, my bad, i'm on wayland yes
Comment 3 TraceyC 2025-04-09 22:44:36 UTC
I've seen this on Wayland with 6.3.4
Comment 4 Vlad Zahorodnii 2025-05-16 15:12:45 UTC
Git commit d6436e077c05abd100d905aaa73222a48ca1695f by Vlad Zahorodnii.
Committed on 16/05/2025 at 15:12.
Pushed by vladz into branch 'master'.

wallpapers/image: Fix thumbnails not matching output size

The `Screen` is an attached property and it never changes, we need to
monitor screen size changes instead.

M  +4    -5    wallpapers/image/imagepackage/contents/ui/config.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/d6436e077c05abd100d905aaa73222a48ca1695f
Comment 5 Vlad Zahorodnii 2025-05-16 15:33:26 UTC
Git commit 6d12cde35dda92904536ee3045d5f9ed9e83248d by Vlad Zahorodnii.
Committed on 16/05/2025 at 15:19.
Pushed by vladz into branch 'Plasma/6.4'.

wallpapers/image: Fix thumbnails not matching output size

The `Screen` is an attached property and it never changes, we need to
monitor screen size changes instead.


(cherry picked from commit d6436e077c05abd100d905aaa73222a48ca1695f)

7678dfa9 wallpapers/image: Fix thumbnails not matching output size
5f4d8bc8 Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>

M  +4    -5    wallpapers/image/imagepackage/contents/ui/config.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/6d12cde35dda92904536ee3045d5f9ed9e83248d