Skip to content

Factor out wlr_wl_seat in Wayland backend

Simon Ser requested to merge github/fork/ony/feature/wayland-backend-seats into master

Created by: ony

Note that this PR is based on 0.11.0, because master at the moment is crashing my sway for some reason.

Change in output to use current_pointer

This is just to bring in sync seat.c (we propagate events to current_pointer) and output.c. Though we have at most one pointer at the moment, this may simplify some further work by dropping implicit assumption assert(!wl->current_pointer || wl->current_pointer->wl_pointer == wl->pointer) that we already seems to have in seat.c.

Re-factor managing seat/keyboard/pointer to group them under wlr_wl_seat

Testing

WLR_WL_OUTPUTS=2 WLR_NO_HARDWARE_CURSORS=1 WLR_BACKENDS=wayland cage -s -D -- weston-terminal

Started under Sway (running system wlroots-0.11.0) with single seat.

Merge request reports

Loading