Bug 244129 - x11-servers/xwayland: use evdev xkb rules by default
Summary: x11-servers/xwayland: use evdev xkb rules by default
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-02-14 18:18 UTC by Jan Beich
Modified: 2020-02-14 18:18 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments
v1 (1.03 KB, patch)
2020-02-14 18:18 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2020-02-14 18:18:19 UTC
Created attachment 211654 [details]
v1

Wayland on FreeBSD only supports evdev(4) input devices, so use matching xkb rules. This fixes at least Down (arrow) and Left (arrow) key repeat behavior. Only necessary if using autotools.

configure.ac:
  AC_ARG_WITH(default-xkb-rules, AS_HELP_STRING([--with-default-xkb-rules=RULES],
				     [Keyboard ruleset (default: base/evdev)]),
				  [ XKB_DFLT_RULES="$withval" ],
				  [ XKB_DFLT_RULES="" ])
  if test "x$XKB_DFLT_RULES" = x; then
      case $host_os in
      linux*)
	  dnl doesn't take AutoAddDevices into account, but whatever.
	  XKB_DFLT_RULES="evdev"
	  ;;
      *)
	  XKB_DFLT_RULES="base"
	  ;;
      esac
  fi

meson_options.txt:
  option('xkb_default_rules', type: 'string', value: 'evdev')