Bug 497952 - "Touchpad toggle" keyboard global shortcut is only set up if you log into a Wayland session first
Summary: "Touchpad toggle" keyboard global shortcut is only set up if you log into a W...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 6.2.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2024-12-27 18:56 UTC by Werner Sembach [TUXEDO]
Modified: 2025-02-11 12:04 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Werner Sembach [TUXEDO] 2024-12-27 18:56:14 UTC
SUMMARY
Some default user settings are different based upon what display server (X11 or Wayland) where used for first login.

STEPS TO REPRODUCE
1. Create 2 new users
2. Do the initial login for the first user using the X11 session
3. Do the initial login for the secound user using the Wayland session

OBSERVED RESULT
Some settings are different between the 2 users. The 2 examples I know of:
- Mouse acceleration is activated for the user initially logged into Wayland, even when switching to X11 for the following logins, and is deactivated for the user initially logged into X11, even when switching to wayland for the following logins.
- A shortcut for touchpad toggle upon pressing Meta+CTRL+Zenkaku/Hangaku is set for the initial-wayland-user, but not for the initial-x11-user.

Both settings ofc can be changed by hand. Only what they are initially set to differs.

EXPECTED RESULT
Initial configuration is not dependant on what display server was used for the initial login.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.2 (User Edition)
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Comment 1 John Kizer 2025-01-06 03:47:49 UTC
Hi - the first observed result there is already submitted as https://bugs.kde.org/show_bug.cgi?id=496531.

The second observed result is based on https://invent.kde.org/plasma/kwin/-/commit/bf7bdf0be8416a866b3fd063882c6a449e8c736b , which was based at the time on those shortcuts only functioning on Wayland. Are you observing that those touchpad shortcuts are in fact functional on X11 in the same way as on Wayland?

Thanks,
Comment 2 Werner Sembach [TUXEDO] 2025-01-07 08:40:45 UTC
(In reply to John Kizer from comment #1)
> Hi - the first observed result there is already submitted as
> https://bugs.kde.org/show_bug.cgi?id=496531.

kk

> 
> The second observed result is based on
> https://invent.kde.org/plasma/kwin/-/commit/
> bf7bdf0be8416a866b3fd063882c6a449e8c736b , which was based at the time on
> those shortcuts only functioning on Wayland. Are you observing that those
> touchpad shortcuts are in fact functional on X11 in the same way as on
> Wayland?

Thanks for the link. No, they don't work on X11, but when you first login into X11 and it is not set, it will also not be set once you switch to wayland. Like this them not being set on X11, even when they are not functional there, also affects wayland, where they are functional.
Comment 4 Bug Janitor Service 2025-01-28 20:37:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2761
Comment 5 Werner Sembach [TUXEDO] 2025-01-30 13:06:35 UTC
(In reply to Bug Janitor Service from comment #4)
> A possibly relevant merge request was started @
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2761

yes looks like it would fix this
Comment 6 Nicolas Fella 2025-02-11 12:03:13 UTC
Git commit 7431cc400e5a22f350cc728dd21ee343cd6c13ec by Nicolas Fella.
Committed on 11/02/2025 at 11:54.
Pushed by nicolasfella into branch 'master'.

[kcms/touchpad] Make toggle touchpad shortcut consistent with Wayland session

On Wayland KWin takes care of this and since https://invent.kde.org/plasma/kwin/-/commit/4384f9c5fd9e93d3c2e2c5068fff681685eca874
it includes a shortcut based on Key_Zenkaku_Hankaku

Make the X11 version consistent with that, otherwise the configuration diverges
between X11 and Wayland and you get different behaviors depending on which one
is used first

M  +2    -1    kcms/touchpad/actions.cpp

https://invent.kde.org/plasma/plasma-desktop/-/commit/7431cc400e5a22f350cc728dd21ee343cd6c13ec
Comment 7 Nicolas Fella 2025-02-11 12:04:28 UTC
Git commit 1d13d6fdb04ec75ba5c067bc54222d23a97facc7 by Nicolas Fella.
Committed on 11/02/2025 at 12:04.
Pushed by nicolasfella into branch 'Plasma/6.3'.

[kcms/touchpad] Make toggle touchpad shortcut consistent with Wayland session

On Wayland KWin takes care of this and since https://invent.kde.org/plasma/kwin/-/commit/4384f9c5fd9e93d3c2e2c5068fff681685eca874
it includes a shortcut based on Key_Zenkaku_Hankaku

Make the X11 version consistent with that, otherwise the configuration diverges
between X11 and Wayland and you get different behaviors depending on which one
is used first
(cherry picked from commit 7431cc400e5a22f350cc728dd21ee343cd6c13ec)

M  +2    -1    kcms/touchpad/actions.cpp

https://invent.kde.org/plasma/plasma-desktop/-/commit/1d13d6fdb04ec75ba5c067bc54222d23a97facc7