mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Use sway_log_errno instead of strerror
This commit is contained in:
parent
75406bb93b
commit
5d6f906bd7
3 changed files with 9 additions and 12 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <time.h>
|
||||
#include <wlr/types/wlr_cursor.h>
|
||||
|
|
@ -827,8 +826,7 @@ void seat_set_focus(struct sway_seat *seat, struct sway_node *node) {
|
|||
wl_event_source_timer_update(view->urgent_timer,
|
||||
config->urgent_timeout);
|
||||
} else {
|
||||
sway_log(SWAY_ERROR, "Unable to create urgency timer (%s)",
|
||||
strerror(errno));
|
||||
sway_log_errno(SWAY_ERROR, "Unable to create urgency timer");
|
||||
handle_urgent_timeout(view);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue