|
|
@ -236,7 +236,7 @@ static void handle_new_input(struct wl_listener *listener, void *data) {
|
|
|
|
|
|
|
|
|
|
|
|
apply_input_type_config(input_device);
|
|
|
|
apply_input_type_config(input_device);
|
|
|
|
|
|
|
|
|
|
|
|
sway_input_configure_libinput_device(input_device);
|
|
|
|
bool config_changed = sway_input_configure_libinput_device(input_device);
|
|
|
|
|
|
|
|
|
|
|
|
wl_signal_add(&device->events.destroy, &input_device->device_destroy);
|
|
|
|
wl_signal_add(&device->events.destroy, &input_device->device_destroy);
|
|
|
|
input_device->device_destroy.notify = handle_device_destroy;
|
|
|
|
input_device->device_destroy.notify = handle_device_destroy;
|
|
|
@ -274,6 +274,10 @@ static void handle_new_input(struct wl_listener *listener, void *data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ipc_event_input("added", input_device);
|
|
|
|
ipc_event_input("added", input_device);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (config_changed) {
|
|
|
|
|
|
|
|
ipc_event_input("libinput_config", input_device);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void handle_inhibit_activate(struct wl_listener *listener, void *data) {
|
|
|
|
static void handle_inhibit_activate(struct wl_listener *listener, void *data) {
|
|
|
@ -528,11 +532,14 @@ static void retranslate_keysyms(struct input_config *input_config) {
|
|
|
|
|
|
|
|
|
|
|
|
static void input_manager_configure_input(
|
|
|
|
static void input_manager_configure_input(
|
|
|
|
struct sway_input_device *input_device) {
|
|
|
|
struct sway_input_device *input_device) {
|
|
|
|
sway_input_configure_libinput_device(input_device);
|
|
|
|
bool config_changed = sway_input_configure_libinput_device(input_device);
|
|
|
|
struct sway_seat *seat = NULL;
|
|
|
|
struct sway_seat *seat = NULL;
|
|
|
|
wl_list_for_each(seat, &server.input->seats, link) {
|
|
|
|
wl_list_for_each(seat, &server.input->seats, link) {
|
|
|
|
seat_configure_device(seat, input_device);
|
|
|
|
seat_configure_device(seat, input_device);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (config_changed) {
|
|
|
|
|
|
|
|
ipc_event_input("libinput_config", input_device);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void input_manager_configure_all_inputs(void) {
|
|
|
|
void input_manager_configure_all_inputs(void) {
|
|
|
|