mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-10 05:34:14 -04:00
server: remove backend pointer
This commit is contained in:
parent
dc002acd20
commit
42782bda1d
4 changed files with 10 additions and 11 deletions
4
seat.c
4
seat.c
|
|
@ -720,7 +720,7 @@ handle_destroy(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
struct cg_seat *
|
||||
seat_create(struct cg_server *server)
|
||||
seat_create(struct cg_server *server, struct wlr_backend *backend)
|
||||
{
|
||||
struct cg_seat *seat = calloc(1, sizeof(struct cg_seat));
|
||||
if (!seat) {
|
||||
|
|
@ -788,7 +788,7 @@ seat_create(struct cg_server *server)
|
|||
wl_list_init(&seat->touch);
|
||||
|
||||
seat->new_input.notify = handle_new_input;
|
||||
wl_signal_add(&server->backend->events.new_input, &seat->new_input);
|
||||
wl_signal_add(&backend->events.new_input, &seat->new_input);
|
||||
|
||||
wl_list_init(&seat->drag_icons);
|
||||
seat->request_start_drag.notify = handle_request_start_drag;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue