mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
tinywl: attach pointers to outputs
This commit is contained in:
parent
4cbc8385ce
commit
4618e4f13b
1 changed files with 3 additions and 0 deletions
|
|
@ -277,6 +277,9 @@ static void server_new_pointer(struct tinywl_server *server,
|
|||
* opportunity to do libinput configuration on the device to set
|
||||
* acceleration, etc. */
|
||||
wlr_cursor_attach_input_device(server->cursor, device);
|
||||
|
||||
struct wlr_pointer *wlr_pointer = wlr_pointer_from_input_device(device);
|
||||
wlr_cursor_map_input_to_output(server->cursor, device, wlr_pointer->output);
|
||||
}
|
||||
|
||||
static void server_new_input(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue