diff options
author | Tudor Brindus <me@tbrindus.ca> | 2021-01-30 14:58:27 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-31 19:17:04 +0100 |
commit | b3d782f81877088da496006892f8522299e40ccb (patch) | |
tree | 43f605965f0f64e0882583e7bd2897e1135879db /xwayland/selection/outgoing.c | |
parent | aa86a022fa00edd0723ff48a6765ee7fbddefadc (diff) |
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.
Diffstat (limited to 'xwayland/selection/outgoing.c')
-rw-r--r-- | xwayland/selection/outgoing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/selection/outgoing.c b/xwayland/selection/outgoing.c index 1e490adb..8074e3a7 100644 --- a/xwayland/selection/outgoing.c +++ b/xwayland/selection/outgoing.c @@ -297,6 +297,7 @@ static bool xwm_selection_send_data(struct wlr_xwm_selection *selection, return false; } + xwm_selection_transfer_init(transfer); transfer->selection = selection; transfer->request = *req; wl_array_init(&transfer->source_data); |