sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit d6daf10cad540f7581e9a325a041333d1113cae5
parent 32663b7b013e9c0fd37c1c86d6c26bc3156e1c3a
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Sat, 28 Jul 2018 10:00:04 +1000

Show errno description in log

Diffstat:
Msway/desktop/transaction.c | 6+++---
Msway/input/seat.c | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c @@ -319,9 +319,9 @@ static void transaction_commit(struct sway_transaction *transaction) { if (transaction->timer) { wl_event_source_timer_update(transaction->timer, txn_timeout_ms); } else { - wlr_log(WLR_ERROR, "Unable to create transaction timer. " - "There might not be any available file descriptors. " - "Some imperfect frames might be rendered."); + wlr_log(WLR_ERROR, "Unable to create transaction timer (%s). " + "Some imperfect frames might be rendered.", + strerror(errno)); handle_timeout(transaction); } } diff --git a/sway/input/seat.c b/sway/input/seat.c @@ -700,8 +700,8 @@ void seat_set_focus_warp(struct sway_seat *seat, wl_event_source_timer_update(view->urgent_timer, config->urgent_timeout); } else { - wlr_log(WLR_ERROR, "Unable to create urgency timer. " - "There might not be any available file descriptors."); + wlr_log(WLR_ERROR, "Unable to create urgency timer (%s)", + strerror(errno)); handle_urgent_timeout(view); } } else {