flacjacket / pywlroots

Python binding to the wlroots library using cffi
University of Illinois/NCSA Open Source License
52 stars 14 forks source link

Add OutputHeadV1State.apply() #149

Closed heuer closed 6 months ago

heuer commented 7 months ago

OutputHeadV1State is missing a method to apply the state on an output state. I guess OutputState has to be implemented as well.

See wlroots 1.6.2 - wlr_output_management_v1.h

/**
 * Apply the head state on the supplied struct wlr_output_state.
 *
 * Compositors can then pass the resulting struct wlr_output_state to
 * wlr_output_commit_state() or wlr_output_test_state().
 *
 * The position needs to be applied manually by the caller.
 */
void wlr_output_head_v1_state_apply(
    const struct wlr_output_head_v1_state *head_state,
    struct wlr_output_state *output_state);
heuer commented 7 months ago

Note: OutputState is implemented in the wlroots-next branch

https://github.com/flacjacket/pywlroots/blob/wlroots-next/wlroots/wlr_types/output.py#L311