seat: remove not needed device type test

The device type is already validated in the calling
function.
This commit is contained in:
Jens Peters 2024-01-13 10:03:25 +01:00 committed by Johan Malm
parent 516423f9ba
commit ffc4b0fdee

View file

@ -279,11 +279,9 @@ new_touch(struct seat *seat, struct wlr_input_device *dev)
input->wlr_input_device = dev;
configure_libinput(dev);
wlr_cursor_attach_input_device(seat->cursor, dev);
/* In support of running with WLR_WL_OUTPUTS set to >=2 */
if (dev->type == WLR_INPUT_DEVICE_TOUCH) {
map_touch_to_output(seat, dev);
}
map_touch_to_output(seat, dev);
return input;
}