aboutsummaryrefslogtreecommitdiff
path: root/xwayland/selection/selection.c
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2021-01-25 20:07:52 -0500
committerSimon Ser <contact@emersion.fr>2021-01-29 10:18:03 +0100
commit10a2d57055c1a30130da1530243d391861f004f3 (patch)
tree237ce2c0d40b8d4cd25be30b9f6c15176640fb77 /xwayland/selection/selection.c
parent40b2e7669a39a4371cd9761face9ca70f083e5c6 (diff)
xwayland/selection: explicitly bail if first write to Wayland fd fails
If `xwm_data_source_write` failed, it's failed permanently. In fact, a failing `xwm_data_source_write` sets `transfer->property_reply` to null as part of its error handling. Instead of relying on an indirect check (whether `transfer->property_reply` is still non-null), explicitly use the return value from `xwm_data_source_write`.
Diffstat (limited to 'xwayland/selection/selection.c')
0 files changed, 0 insertions, 0 deletions