aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2019-01-24 11:32:49 +0000
committerLibravatar Ian Fan <ianfan0@gmail.com>2019-01-24 11:33:54 +0000
commit5d6f906bd789f40fb0c58398909cfb39d44d4456 (patch)
treeba85cc3d475bd57cfe310c5783ebe4e417a17164 /sway/input/seat.c
parentUpdate for swaywm/wlroots#1402 (diff)
downloadsway-5d6f906bd789f40fb0c58398909cfb39d44d4456.tar.gz
sway-5d6f906bd789f40fb0c58398909cfb39d44d4456.tar.zst
sway-5d6f906bd789f40fb0c58398909cfb39d44d4456.zip
Use sway_log_errno instead of strerror
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index fd5eda2d..b6ccd830 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -1,7 +1,6 @@
1#define _POSIX_C_SOURCE 200809L 1#define _POSIX_C_SOURCE 200809L
2#include <assert.h>
3#include <errno.h>
4#include <linux/input-event-codes.h> 2#include <linux/input-event-codes.h>
3#include <string.h>
5#include <strings.h> 4#include <strings.h>
6#include <time.h> 5#include <time.h>
7#include <wlr/types/wlr_cursor.h> 6#include <wlr/types/wlr_cursor.h>
@@ -827,8 +826,7 @@ void seat_set_focus(struct sway_seat *seat, struct sway_node *node) {
827 wl_event_source_timer_update(view->urgent_timer, 826 wl_event_source_timer_update(view->urgent_timer,
828 config->urgent_timeout); 827 config->urgent_timeout);
829 } else { 828 } else {
830 sway_log(SWAY_ERROR, "Unable to create urgency timer (%s)", 829 sway_log_errno(SWAY_ERROR, "Unable to create urgency timer");
831 strerror(errno));
832 handle_urgent_timeout(view); 830 handle_urgent_timeout(view);
833 } 831 }
834 } else { 832 } else {