GNOME Bugzilla – Bug 491059
gnome-keyboard-applet incorrectly detects the current group if "Separate layout for each window" is disabled
Last modified: 2020-11-06 19:56:00 UTC
Please describe the problem: gnome-keyboard-applet incorrectly displays the current group if "Separate layout for each window" is disabled and another group than the first one has been set as ethe default. Steps to reproduce: 1. launch gnome-keyboard-properties 2. in the layout tab, add a second layout (there must be more than one) and set is as the default 3. disable "Separate layout for each window" 4. disconnect and reconnect Actual results: The gnome-keyboard-applet displays the second layout as being the current one although it is not. Expected results: The gnome-keyboard should display the real current layout Does this happen every time? yes Other information: The original bug report is here: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-applets/+bug/158044 It seems the gnome-keyboard-applet relies on the XKLAVIER_STATE param of the top window to get the current group, but this param doesn't give the real group when a group has been locked (which is the case when "Separate layout for each window" is disabled)
What is your configuration? I cannot reproduce it using "US English + Russian (Winkeys)" configuration. Could you please provide "xprop -root| grep XKB"
I am under Ubuntu Hardy, but at this time it's very close to Ubuntu Gutsy 7.10. $ xprop -root| grep XKB _XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "fr", "oss", "" _XKB_RULES_NAMES(STRING) = "xorg", "pc105", "fr,gb", "oss,", "grp:alts_toggle" you can see that the french keyboard is activated. However for any windows I get: $ xprop | grep XKLAVIER XKLAVIER_STATE(INTEGER) = 1, 0 The first group is the "Great Britain" keyboard, as I set it as default before disabling "Separate layout for each window". From what I saw the gnome-keyboard-applet (in fact gkb-indicator) relies on XKLAVIER_STATE to know which layout is the current, but from what I understood, that doesn't seem to work when a group has been locked. This happens after login, maybe it's bad keyboard initialisation from gnome ?
Do you have enough information or do you need me to perform more tests ?
I just checked your configuration. It works with disabled "Separate layout" as expected. Not reproducable problem :// I am using Gutsy. Yes you are right about XKLAVIER_STATE - it is used for saving the state. But it is actually ignored when "Separate layout" checkbox is clear.
*** Bug 582727 has been marked as a duplicate of this bug. ***
Sergey, is this NOTABUG then?
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years. If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-applets/-/issues/ Thank you for reporting this issue and we are sorry it could not be fixed.