cannot switching keyboard layout with xfce4-keyboard-settings

Bug #1805197 reported by Ulli Horlacher on 2018-11-26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libxklavier (Ubuntu)
xfce4-settings (Ubuntu)

Bug Description

This is on xubuntu 18.04:

With xfce4-keyboard-settings I have loaded the keyboard layouts "English (US)" and "German".
Both are listed in the "Keybord layout" table.
When I change the order with [key up] or [key down] nothing happens, I still have the old keyboard layout active.
To switch the layout I have to DELETE the other one!
This was not the case with xubuntu 16.04: just changing the order was sufficent there.

It is very long time since this came in for me (4.10 -> 4.12 but I am not sure). Changing keyboard layout with enabled debug messages shows:

xfce4-settings(keyboard-layout): set layouts to "us,de"
xfce4-settings(keyboard-layout): set layouts to "de,us"

but layout remains unchanged. Looking into the code, it seems everything works fine: The message is created by 'xfce_keyboard_layout_helper_set' and the values in the debug message look correct.
Up to now I worked around this by adding xfce4-xkb-plugin in panel and select the 'global'-change option.

I have this problem on all my machines (Fedora / Openembedded-built) and have

* xfce4-settings 4.12.1
* libxklavier 5.4


What makes me wonder is that it seems I am the only one having this issue - I did not find any bugs for this issue...

Changed in xfce4-settings:
importance: Unknown → Medium
status: Unknown → Confirmed

This bug is not present anymore after downgrading the libxklavier package to the version from xenial (5.4-0ubuntu2).

Building the libxklavier package with the dropped revert-default-group-change.patch file resolves the problem.

I tested. Thanks so much for fixing this!

Sebastien Bacher (seb128) wrote :

Thank you for your bug report, if it's a libxklavier issue then it should be reported upstream on

Changed in libxklavier (Ubuntu):
importance: Undecided → Low
Sebastien Bacher (seb128) wrote :

The patch you mentioned as dropped by doko in this sync,

Matthias, what was the rational to drop that change?

On Thu 2018-11-29 (09:50), Sebastien Bacher wrote:
> Thank you for your bug report, if it's a libxklavier issue then it
> should be reported upstream on

Don't know about libxklavier - what is it?
Nevertheless it is a bug in (x)ubuntu!
So, you (the distributor) should fix it or at least notify the original
source maintainer!

Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: <email address hidden>
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW:
REF:<email address hidden>

It is a library for keyboard layout handling. The Ubuntu package used to include a patch which apparently fixes the problem with xfce4-keyboard-settings.

Old upstream report:

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libxklavier (Ubuntu):
status: New → Confirmed
Changed in xfce4-settings (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.