aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index e7b6e0c5..ab07c03c 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -696,8 +696,14 @@ void seat_set_focus_warp(struct sway_seat *seat,
696 config->urgent_timeout > 0) { 696 config->urgent_timeout > 0) {
697 view->urgent_timer = wl_event_loop_add_timer(server.wl_event_loop, 697 view->urgent_timer = wl_event_loop_add_timer(server.wl_event_loop,
698 handle_urgent_timeout, view); 698 handle_urgent_timeout, view);
699 wl_event_source_timer_update(view->urgent_timer, 699 if (view->urgent_timer) {
700 config->urgent_timeout); 700 wl_event_source_timer_update(view->urgent_timer,
701 config->urgent_timeout);
702 } else {
703 wlr_log(WLR_ERROR, "Unable to create urgency timer. "
704 "There might not be any available file descriptors.");
705 handle_urgent_timeout(view);
706 }
701 } else { 707 } else {
702 view_set_urgent(view, false); 708 view_set_urgent(view, false);
703 } 709 }