mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-18 06:59:44 -05:00
xwayland/selection: introduce xwm_selection_transfer_init
Currently, all this does is initialize `wl_client_fd` to -1, so that comparisons with 0 are meaningful.
This commit is contained in:
parent
aa86a022fa
commit
b3d782f818
4 changed files with 9 additions and 2 deletions
|
|
@ -32,6 +32,10 @@ void xwm_selection_transfer_destroy_property_reply(
|
|||
transfer->property_reply = NULL;
|
||||
}
|
||||
|
||||
void xwm_selection_transfer_init(struct wlr_xwm_selection_transfer *transfer) {
|
||||
transfer->wl_client_fd = -1;
|
||||
}
|
||||
|
||||
void xwm_selection_transfer_finish(
|
||||
struct wlr_xwm_selection_transfer *transfer) {
|
||||
transfer->incr = false;
|
||||
|
|
@ -182,6 +186,7 @@ static void selection_init(struct wlr_xwm *xwm,
|
|||
selection->window = xwm->selection_window;
|
||||
selection->incoming.selection = selection;
|
||||
wl_list_init(&selection->outgoing);
|
||||
xwm_selection_transfer_init(&selection->incoming);
|
||||
|
||||
uint32_t mask =
|
||||
XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue