Bug 1227522

Summary: xterm under plasma/wayland uses wrong keyboard layout
Product: [openSUSE] openSUSE Distribution Reporter: Jürgen Groß <jgross>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: d_werner, fvogt, jgross, r.neumaier
Version: Leap 15.6   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jürgen Groß 2024-07-08 14:51:57 UTC
After doing an online update Leap 15.5 -> 15.6 on a system using the Plasma/wayland desktop native X11 applications (xterm, hexchat, ...) keep using the wrong keyboard layout.

Directly after the update all applications were using qwerty layout. After changing the layout via System-Settings->Input-Devices to German and logging out and in again, Frefox, Konsole etc. were using the qwertz layout, while xterm and hexchat still insisted on using qwerty layout.

I have checked the settings in Yast, which are okay (Hardware->System-Keyboard-Layout is German, checkbox System->Language->Adapt-Layout-to-English is not selected).

Even a reboot did not help.
Comment 1 Fabian Vogt 2024-07-08 15:09:06 UTC
I suspect something calls "setxkbmap" in a wayland session, which just messes up Xwayland.

What's the output of setxkbmap -query?
Comment 2 Jürgen Groß 2024-07-08 15:11:27 UTC
# setxkbmap -query
rules:      evdev
model:      pc105
layout:     us
Comment 3 René Neumaier 2024-07-08 16:42:07 UTC
Please have a look at the following topic:
https://forums.opensuse.org/t/wrong-keyboard-layout-on-most-applications-after-fresh-install/175773

It is not exactly the same, but I see some similarities.
Since Leap 15.6 we are running in very similar keymap issues on multiple test installations. In our situation it is a Gnome-Wayland session. GTK applications (like Firefox you mentioned) has the right keymap but not QT applications (e.g. Calligra Word or VLC).

It is possible to omit that issue while starting Gnome on Xorg. Maybe this works also with Plasma?

In my opinion it seems there is something wrong with QT/Wayland in combination.
Comment 4 Dirk Weber 2024-07-08 16:55:00 UTC
Seems like a duplicate of bug 1219505 for which the correction has not arrived in Leap 15.6 yet.
Comment 5 Fabian Vogt 2024-07-10 10:28:41 UTC
(In reply to Dirk Weber from comment #4)
> Seems like a duplicate of bug 1219505 for which the correction has not
> arrived in Leap 15.6 yet.

Indeed.

*** This bug has been marked as a duplicate of bug 1219505 ***