xwayland/selection: make xwm_selection_finish take a wlr_xwm_selection *

Previously it took a wlr_xwm *, which was a bit surprising in that it
freed members of wlr_xwm *, not just its respective selections.
This commit is contained in:
Tudor Brindus 2021-01-29 23:47:03 -05:00 committed by Simon Ser
parent b6ba595862
commit aa86a022fa
3 changed files with 40 additions and 45 deletions

View file

@ -77,6 +77,6 @@ bool primary_selection_source_is_xwayland(
void xwm_seat_handle_start_drag(struct wlr_xwm *xwm, struct wlr_drag *drag);
void xwm_selection_init(struct wlr_xwm *xwm);
void xwm_selection_finish(struct wlr_xwm *xwm);
void xwm_selection_finish(struct wlr_xwm_selection *selection);
#endif