From 9d99bb956fea8922f8e0196d67eabbd510c53f1f Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Sun, 23 Oct 2022 03:09:38 +0300 Subject: Fix keymap being NULL and segfaulting on dev add Moved `libinput_config` to the callers of `sway_input_configure_libinput_device` so that we send the event after the added event. --- include/sway/input/libinput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sway/input') diff --git a/include/sway/input/libinput.h b/include/sway/input/libinput.h index 890d632e..e4b1acc3 100644 --- a/include/sway/input/libinput.h +++ b/include/sway/input/libinput.h @@ -2,7 +2,7 @@ #define _SWAY_INPUT_LIBINPUT_H #include "sway/input/input-manager.h" -void sway_input_configure_libinput_device(struct sway_input_device *device); +bool sway_input_configure_libinput_device(struct sway_input_device *device); void sway_input_reset_libinput_device(struct sway_input_device *device); -- cgit v1.2.3