From: Jens Peters Date: Sat, 13 Jan 2024 09:03:25 +0000 (+0100) Subject: seat: remove not needed device type test X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ffc4b0fdeeacd89b2260d405e37367770ca1bf05;p=proto%2Flabwc.git seat: remove not needed device type test The device type is already validated in the calling function. --- diff --git a/src/seat.c b/src/seat.c index 8a747002..1a95c721 100644 --- a/src/seat.c +++ b/src/seat.c @@ -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; }