Bug 479669

Summary: After connecting an external monitor and changing the wallpaper, Kickoff spaces out its grid incorrectly and can be resized lower than the minimum value
Product: [Plasma] plasmashell Reporter: Alexander Sanderson <1gsiqkbz>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: mikel5764, nate, noahadvs
Priority: NOR Keywords: multiscreen
Version: 5.27.10   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 6.0
Sentry Crash Report:
Attachments: how the application launcher looks without resizing it after connecting an external display and changing the wallpaper
how the application launcher looks resizing it as low as possible after connecting an external display and changing the wallpaper

Description Alexander Sanderson 2024-01-11 21:57:35 UTC
After connecting an external monitor, switching the primary display to it, and changing the wallpaper, Kickoff spaces out its grid incorrectly and can be resized lower than the minimum value. 


STEPS TO REPRODUCE
1. Connect computer to external display
2. Make that external display the primary display
3. Open the Application Launcher (and maybe try resizing it too)

OBSERVED RESULT
The Launcher can be resized far below its usual minimum size, and even without resizing it, the Favorites tab's grid view is three items wide instead of four


EXPECTED RESULT
The Launcher cannot be resized below its ordinary minimum size and even without resizing it, the Favorites tab's grid view is four items wide.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20240109
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
This bug might be related to fractional scaling, as I use it on both my laptop's internal display and my monitor (both on 150%).
Comment 1 Alexander Sanderson 2024-01-11 22:00:26 UTC
Created attachment 164828 [details]
how the application launcher looks without resizing it after connecting an external display and changing the wallpaper
Comment 2 Alexander Sanderson 2024-01-11 22:01:02 UTC
Created attachment 164829 [details]
how the application launcher looks resizing it as low as possible after connecting an external display and changing the wallpaper
Comment 3 Nate Graham 2024-02-15 22:20:16 UTC
A few questions:
- It this on X11 or Wayland?
- What are the resolutions and scale factors of the screens?
- Does it ever happen with the current screen arrangement, but with the other screen being the primary one?
- Does it ever happen with only one screen?
Comment 4 Alexander Sanderson 2024-02-22 19:09:35 UTC
(In reply to Nate Graham from comment #3)
> A few questions:
> - It this on X11 or Wayland?
> - What are the resolutions and scale factors of the screens?
> - Does it ever happen with the current screen arrangement, but with the
> other screen being the primary one?
> - Does it ever happen with only one screen?

1. This is on Wayland
2. One screen (internal laptop screen) is 2256x1504, the other (an external monitor) is 3840x2160. Both use 150% fractional scaling. 
3. Yes. I use the setting to switch to the external screen and disable the internal one when I connect my monitor, so only one monitor is ever in use at a time.
4. Yes.
Comment 5 Nate Graham 2024-02-23 21:29:35 UTC
Thanks. I cannot reproduce the issue in Plasma 6, where a *ton* of multiscreen bugs have been fixed. So let's call this one of them!