mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
Implement wlr_cursor in rootston
This commit is contained in:
parent
e81e99d16d
commit
57c50c78f0
7 changed files with 220 additions and 35 deletions
|
|
@ -75,12 +75,12 @@ struct roots_input *input_create(struct roots_server *server,
|
|||
assert(input);
|
||||
|
||||
input->config = config;
|
||||
input->cursor = wlr_cursor_create();
|
||||
input->server = server;
|
||||
|
||||
struct wlr_xcursor_theme *theme;
|
||||
assert(theme = wlr_xcursor_theme_load("default", 16));
|
||||
assert(input->xcursor = wlr_xcursor_theme_get_cursor(theme, "left_ptr"));
|
||||
wlr_cursor_set_xcursor(input->cursor, input->xcursor);
|
||||
|
||||
assert(input->wl_seat = wlr_seat_create(server->wl_display, "seat0"));
|
||||
|
||||
wl_list_init(&input->keyboards);
|
||||
|
|
@ -98,6 +98,10 @@ struct roots_input *input_create(struct roots_server *server,
|
|||
wl_signal_add(&server->backend->events.input_remove,
|
||||
&input->input_remove);
|
||||
|
||||
input->cursor = wlr_cursor_create();
|
||||
cursor_initialize(input);
|
||||
wlr_cursor_set_xcursor(input->cursor, input->xcursor);
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue