seat: map tablet to output on init

This commit is contained in:
Jens Peters 2024-01-07 22:24:16 +01:00 committed by Johan Malm
parent 80075df0b7
commit 354c5cf967

View file

@ -286,6 +286,9 @@ new_tablet(struct seat *seat, struct wlr_input_device *dev)
struct input *input = znew(*input);
input->wlr_input_device = dev;
tablet_init(seat, dev);
wlr_cursor_attach_input_device(seat->cursor, dev);
wlr_log(WLR_INFO, "map tablet to output %s\n", rc.tablet.output_name);
map_input_to_output(seat, dev, rc.tablet.output_name);
return input;
}