Bug 499192

Summary: After changing the number of virtual desktops, the on-screen display for switching desktops doesn't resize accordingly until the session is restarted
Product: [Plasma] kwin Reporter: jy6x2b32pie9
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: john.kizer
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Virtual desktop information window, selected desktop is outside the window

Description jy6x2b32pie9 2025-01-27 13:02:31 UTC
Created attachment 177711 [details]
Virtual desktop information window, selected desktop is outside the window

SUMMARY
After adding third virtual desktop, I noticed that when switching with keybinds, the window showing relative location of desktops doesn't grow to match the numbers and stays on two.

STEPS TO REPRODUCE
1. Add second and third virtual desktop.
2. Bind key combination to switch through them
3. Switch desktops with keyboard

OBSERVED RESULT

Information box with current virtual desktop and their relative position remains at two desktops wide, desktop 3 selection is shown outside of the box

EXPECTED RESULT

Information box grows correctly, is properly centered.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 jy6x2b32pie9 2025-01-27 13:03:23 UTC
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.13.0-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 2 jy6x2b32pie9 2025-01-27 14:02:48 UTC
https://i.ibb.co/1GHdRRh/image.png
Well. Two desktops, two rows. This is worse.
Comment 3 jy6x2b32pie9 2025-01-27 19:57:38 UTC
After restarting session the OSD renders correctly, until number of desktops is changed.
Comment 4 John Kizer 2025-01-28 05:39:25 UTC
Hi - I can reproduce on Fedora KDE 41. Thanks!