mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
seat: remove not needed device type test
The device type is already validated in the calling function.
This commit is contained in:
parent
516423f9ba
commit
ffc4b0fdee
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue