mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
Merge branch 'input-device-output' into 'master'
Draft: pointer,touch: store the output instead of its name See merge request wlroots/wlroots!4167
This commit is contained in:
commit
2f49d01779
5 changed files with 6 additions and 5 deletions
|
|
@ -286,6 +286,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