mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
ipc-json: Fix NULL ptr dereference if layout NULL
This commit is contained in:
parent
9f98c38d3e
commit
4d0a11da3d
1 changed files with 2 additions and 1 deletions
|
|
@ -236,7 +236,6 @@ static void handle_new_input(struct wl_listener *listener, void *data) {
|
|||
|
||||
apply_input_type_config(input_device);
|
||||
|
||||
sway_input_configure_libinput_device(input_device);
|
||||
|
||||
wl_signal_add(&device->events.destroy, &input_device->device_destroy);
|
||||
input_device->device_destroy.notify = handle_device_destroy;
|
||||
|
|
@ -266,6 +265,8 @@ static void handle_new_input(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
sway_input_configure_libinput_device(input_device);
|
||||
|
||||
if (!added) {
|
||||
sway_log(SWAY_DEBUG,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue