mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
input: move cursor event listeners from tablet to seat
Otherwise we would subscribe multiple times to the same event when having multiple tablets.
This commit is contained in:
parent
538eb3ee83
commit
dd0cee02a4
9 changed files with 40 additions and 22 deletions
|
|
@ -367,7 +367,7 @@ new_tablet(struct seat *seat, struct wlr_input_device *dev)
|
|||
{
|
||||
struct input *input = znew(*input);
|
||||
input->wlr_input_device = dev;
|
||||
tablet_init(seat, dev);
|
||||
tablet_create(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);
|
||||
|
|
@ -380,7 +380,7 @@ new_tablet_pad(struct seat *seat, struct wlr_input_device *dev)
|
|||
{
|
||||
struct input *input = znew(*input);
|
||||
input->wlr_input_device = dev;
|
||||
tablet_pad_init(seat, dev);
|
||||
tablet_pad_create(seat, dev);
|
||||
|
||||
return input;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue