Bug#922020: gnome-shell: Keyboard layout not applied in programs using Xwayland

Simon McVittie smcv at debian.org
Mon Feb 11 11:24:34 GMT 2019


Control: reassign -1 xkb-data 2.26-1

On Mon, 11 Feb 2019 at 10:54:21 +0000, Simon McVittie wrote:
> On Mon, 11 Feb 2019 at 10:56:50 +0100, Paul Menzel wrote:
> > Since updating the packages on Saturday in Debian Sid/unstable, using GNOME
> > Shell with Wayland, the configure keyboard layout is not applied to programs
> > using XWayland anymore. Examples are Mozilla Firefox, Mozilla Thunderbird
> > and Google Chromium.
> 
> I'm not seeing this bug: I'm using a UK English keyboard layout myself,
> and I can still type Shift+3 into Firefox and GTK2 apps to get £ (which
> doesn't appear on USA keyboards).

I can reproduce this by adding a French AZERTY (fr+azerty) keyboard layout
as a third option alongside my current gb and us in GNOME Settings ->
Region & Language, and switching between them with Super+Space
(Windows key + Space). The Journal says:

Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: > Error:            Illegal keycode 374 (must be in the range 8-255 inclusive)
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: >                   Value of "maximum" not changed
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: > Warning:          Unsupported high keycode 372 for name <I372> ignored
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: >                   X11 cannot support keycodes above 255.
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: >                   This warning only shows for the first high keycode.
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: Errors from xkbcomp are not fatal to the X server
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: > Warning:          Unsupported high keycode 372 for name <I372> ignored
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: >                   X11 cannot support keycodes above 255.
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: >                   This warning only shows for the first high keycode.
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: > Internal error:   Could not resolve keysym XF86MonBrightnessCycle
Feb 11 11:10:43 espresso org.gnome.Shell.desktop[2322]: Errors from xkbcomp are not fatal to the X server

Answering some of my own questions:

> What keyboard layout are you using/intending to use? Does it still work
> correctly in native Wayland apps like gedit?

I used the fr+azerty layout.

> What precisely do you mean by "not applied"? Does typing into Firefox
> and GTK2 apps behave as though you were using a USA keyboard
> (shift+2 -> @, shift+3 -> #, etc.)

Yes, this. After reproducing the bug, switching back to my usual gb
keyboard layout with Super+Space also resulted in a USA layout.

Downgrading xkb-data to 2.23.1-1 and restarting GNOME Shell (logging out
and back in) successfully works around the bug.

    smcv



More information about the pkg-gnome-maintainers mailing list