mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
seat: map tablet to output on init
This commit is contained in:
parent
80075df0b7
commit
354c5cf967
1 changed files with 3 additions and 0 deletions
|
|
@ -286,6 +286,9 @@ new_tablet(struct seat *seat, struct wlr_input_device *dev)
|
||||||
struct input *input = znew(*input);
|
struct input *input = znew(*input);
|
||||||
input->wlr_input_device = dev;
|
input->wlr_input_device = dev;
|
||||||
tablet_init(seat, 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;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue