Move server_new_output() to output.c

This commit is contained in:
Johan Malm 2020-05-29 22:18:03 +01:00
parent bc5accb089
commit 298d869092
5 changed files with 55 additions and 54 deletions

View file

@ -225,3 +225,9 @@ void cursor_frame(struct wl_listener *listener, void *data)
/* Notify the client with pointer focus of the frame event. */
wlr_seat_pointer_notify_frame(server->seat);
}
void cursor_new(struct server *server, struct wlr_input_device *device)
{
/* TODO: Configure libinput on device to set tap, acceleration, etc */
wlr_cursor_attach_input_device(server->cursor, device);
}