After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676017 - Boxes uses first xkb layout, not the currently active one
Boxes uses first xkb layout, not the currently active one
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.5.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-05-14 08:49 UTC by Christophe Fergeau
Modified: 2016-03-31 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe Fergeau 2012-05-14 08:49:12 UTC
Boxes reads the org/gnome/libgnomekbd/keyboard/layouts dconf key to get the list of X layouts currently used, and then picks the first item in that list. This list isn't updated to put the current layout first when the user switches to another layout, so what boxes does is not 100% accurate. It seems we'd need to use libxklavier to accurately get the currently active layout ( http://xlibs.freedesktop.org/xkbdesc/doc/libxklavier-xkl-engine.html )
Comment 1 Christophe Fergeau 2012-05-14 09:17:58 UTC
libxklavier seems to set a XKLAVIER_STATE(INTEGER) X property (checked with xprop) whose first number is the index of the current X layout (which probably can be used as an index in the array stored in this gsettings key)
Comment 2 Alexander Larsson 2012-08-21 09:22:50 UTC
This should be fixed by:

http://git.gnome.org/browse/gnome-boxes/commit/?id=4fc27d53a4197613b87083dc42861120bea6b11b