Bug 489807

Summary: Keyboard layout widget is completely broken in x11
Product: [Plasma] plasmashell Reporter: Podagric <kde.podagric>
Component: Keyboard Layout widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: butirsky, kdedev, nate
Priority: NOR    
Version First Reported In: 6.1.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Podagric 2024-07-06 00:43:27 UTC
Please see the attached video.

STEPS TO REPRODUCE
1. Add the keyboard layout widget
2. Try using it

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-zen1-1-zen (64-bit)
Graphics Platform: X11
Comment 1 Podagric 2024-07-06 00:44:51 UTC
https://imgur.com/a/Ba5n0UE
Comment 2 Podagric 2024-07-06 00:52:39 UTC
update: only happens in x11
Comment 3 Nate Graham 2024-07-27 22:50:39 UTC
It's invisible until you have more than one keyboard layout (just like how the Pager widget is invisible until you have more than one Virtual Desktop). If you add another keyboard layout, the version of this widget in the System Tray will become visible automatically.
Comment 4 Podagric 2024-07-27 23:49:42 UTC
see at the end of the video, I have two keyboard layouts
Comment 5 Nate Graham 2024-07-29 20:29:54 UTC
Ok, my mistake. So in this case it seems that all the widgets don't believe you have more than one keyboard layout. If you reboot, do they start noticing it?
Comment 6 Podagric 2024-07-30 21:28:40 UTC
no. nothing changes when I restart. I can only see them if I'm in wayland. 

it seems to me to be something bigger that's broken, because apart from the visual part of the widgets, the keyboard layout isn't applied either.
Comment 7 Nate Graham 2024-07-30 21:37:18 UTC
Ok, thanks.
Comment 8 TraceyC 2024-09-04 15:09:59 UTC
For what it's worth I can't reproduce this on X11 in 6.1.4, with 4 keyboard layouts configured. (Also tested with git-master and 3 layouts)
Adding the widget to the desktop, I see the current layout and can switch between them
The widget settings window has the different display styles as expected
Comment 9 Podagric 2024-09-21 21:12:33 UTC
I've updated to plasma 6.2 beta and this bug is no longer present