|
|
@ -1,6 +1,7 @@
|
|
|
|
#define _XOPEN_SOURCE 700
|
|
|
|
#define _XOPEN_SOURCE 700
|
|
|
|
#define _POSIX_C_SOURCE 199309L
|
|
|
|
#define _POSIX_C_SOURCE 199309L
|
|
|
|
#include <assert.h>
|
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#ifdef __linux__
|
|
|
|
#ifdef __linux__
|
|
|
|
#include <linux/input-event-codes.h>
|
|
|
|
#include <linux/input-event-codes.h>
|
|
|
|
#elif __FreeBSD__
|
|
|
|
#elif __FreeBSD__
|
|
|
@ -696,8 +697,14 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|
|
|
config->urgent_timeout > 0) {
|
|
|
|
config->urgent_timeout > 0) {
|
|
|
|
view->urgent_timer = wl_event_loop_add_timer(server.wl_event_loop,
|
|
|
|
view->urgent_timer = wl_event_loop_add_timer(server.wl_event_loop,
|
|
|
|
handle_urgent_timeout, view);
|
|
|
|
handle_urgent_timeout, view);
|
|
|
|
|
|
|
|
if (view->urgent_timer) {
|
|
|
|
wl_event_source_timer_update(view->urgent_timer,
|
|
|
|
wl_event_source_timer_update(view->urgent_timer,
|
|
|
|
config->urgent_timeout);
|
|
|
|
config->urgent_timeout);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
wlr_log(WLR_ERROR, "Unable to create urgency timer (%s)",
|
|
|
|
|
|
|
|
strerror(errno));
|
|
|
|
|
|
|
|
handle_urgent_timeout(view);
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
view_set_urgent(view, false);
|
|
|
|
view_set_urgent(view, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|