aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2021-01-24 17:50:45 -0500
committerSimon Ser <contact@emersion.fr>2021-01-25 09:22:04 +0100
commitabb56152ffceb8af8e9b288df0358ac6b7cd5f5d (patch)
tree65d108ed263e222ff9cbc0390b4d0f0332c4e3bb /xwayland
parent73ffab70b0961bf0ae946fe020ab1c20db758a1f (diff)
xwayland: use wlr_log_errno instead of %m
Previously, any error would be masked by an internal isatty call: 24:31:48.174 [DEBUG] [wlr] [xwayland/selection/incoming.c:386] XCB_SELECTION_NOTIFY (selection=277, property=278, target=256) 24:31:48.174 [ERROR] [wlr] [xwayland/selection/incoming.c:30] write error to target fd: Inappropriate ioctl for device
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/selection/incoming.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/selection/incoming.c b/xwayland/selection/incoming.c
index ceca1190..7e2a0c14 100644
--- a/xwayland/selection/incoming.c
+++ b/xwayland/selection/incoming.c
@@ -24,10 +24,10 @@ static int xwm_data_source_write(int fd, uint32_t mask, void *data) {
ssize_t len = write(fd, property + transfer->property_start, remainder);
if (len == -1) {
+ wlr_log_errno(WLR_ERROR, "write error to target fd %d", fd);
xwm_selection_transfer_destroy_property_reply(transfer);
xwm_selection_transfer_remove_source(transfer);
xwm_selection_transfer_close_source_fd(transfer);
- wlr_log(WLR_ERROR, "write error to target fd: %m");
return 1;
}