mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
backend/wayland: factor out wlr_wl_seat
This commit is contained in:
parent
df417b7e95
commit
1ac5257357
4 changed files with 88 additions and 48 deletions
|
|
@ -586,8 +586,11 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) {
|
|||
|
||||
wlr_signal_emit_safe(&backend->backend.events.new_output, wlr_output);
|
||||
|
||||
if (backend->pointer != NULL) {
|
||||
create_wl_pointer(backend->pointer, output);
|
||||
struct wlr_wl_seat *seat = backend->seat;
|
||||
if (seat != NULL) {
|
||||
if (seat->pointer) {
|
||||
create_wl_pointer(seat->pointer, output);
|
||||
}
|
||||
}
|
||||
|
||||
return wlr_output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue