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);
|
apply_input_type_config(input_device);
|
||||||
|
|
||||||
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;
|
||||||
|
|
@ -267,6 +266,8 @@ static void handle_new_input(struct wl_listener *listener, void *data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sway_input_configure_libinput_device(input_device);
|
||||||
|
|
||||||
if (!added) {
|
if (!added) {
|
||||||
sway_log(SWAY_DEBUG,
|
sway_log(SWAY_DEBUG,
|
||||||
"device '%s' is not configured on any seats",
|
"device '%s' is not configured on any seats",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue