]> git.mdlowis.com Git - proto/labwc.git/commitdiff
seat: remove not needed device type test
authorJens Peters <jp7677@gmail.com>
Sat, 13 Jan 2024 09:03:25 +0000 (10:03 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 13 Jan 2024 22:18:20 +0000 (22:18 +0000)
The device type is already validated in the calling
function.

src/seat.c

index 8a747002d65bb2d72be79d70e36100e2c562038b..1a95c721683e9856870105cce363566ea1257455 100644 (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;
 }