Skip to content

backends/native: Delay input event processing

小田喜陽彦 requested to merge akihiko.odaki/mutter:main into main
Commit 00bb4190b ("backends/native: Drop device_native->seat_impl
field"), meta_input_device_native_apply_kbd_a11y_settings_in_impl ()
expects the impl member of the seat is initialized.

Howeever, I observed that the member is not initialized when it is
called in the following call chain:
  input_thread ()
  init_libinput ()
  process_events ()
  process_event ()
  process_base_event ()
  evdev_add_device ()
  meta_input_device_native_apply_kbd_a11y_settings_in_impl ()

This resulted in segmentation fault during startup on my laptop.

Move the process_events() call in init_libinput () to
meta_seat_impl_start (), where the seat is fully initiailized.

Fixes: 00bb4190b ("backends/native: Drop device_native->seat_impl field")

Merge request reports