libxkbcommon is mainly used by Wayland consumers, so adjust default, following xwayland and xorg-server preferring xf86-input-libinput.
Details
- Reviewers
tcberner thierry manu - Group Reviewers
x11 - Commits
- rP528813: x11/libxkbcommon: Switch to evdev rules by default
- Builds fine on 11.3/12.0/13.0
- x11-wm/sway works fine without input * xkb_rules evdev
- x11-wm/cage works fine without export XKB_DEFAULT_RULES=evdev
- graphics/imv works fine on X11: only tested xf86-input-libinput
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 29654 Build 27512: arc lint + arc unit
Event Timeline
Would this affect xorg-server as well?
I believe you have to make the UPDATING more verbose, to explain to people more about the change. They might not be aware of libxkbcommon, or which of xf86-input-libinput and xf86-input-keyboard they use. Perhaps you can add part of pkg-message also to updating?
Depends. If an application asks X11 server for keyboard rules then it should work transparently. If an application relies on libxkbcommon default then xf86-input-keyboard users (e.g., on FreeBSD 11) may need to adjust XKB_DEFAULT_RULES (as described in pkg-message) while xf86-input-libinput users (e.g., on FreeBSD 12/13) will see a regression fixed.
I believe you have to make the UPDATING more verbose, to explain to people more about the change.
Does it look better? I know pkg-message supports type: upgrade but it's not flexible enough.
They might not be aware of libxkbcommon,
Running pkg updating shows notes for all installed packages.
or which of xf86-input-libinput and xf86-input-keyboard they use.
pkg-message is intentionally left simple, so new users can experiment instead of keeping numerious conditions in mind.
@bapt, can you check for regressions via x11-wm/i3?
before the change:
- i3 + xf86-input-keyboard
- i3 + xf86-input-libinput: do users need to adjust XKB_DEFAULT_RULES?
after the change:
- i3 + xf86-input-keyboard: do users need to adjust XKB_DEFAULT_RULES?
- i3 + xf86-input-libinput
Changing this setting via export XKB_DEFAULT_RULES=evdev fixes KDE on my new laptop (Dell Latitude 7390). Can this change be committed to modify the default soon?