mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Remove timerfd from loop implementation
timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
This commit is contained in:
parent
f98f351a52
commit
6921fdc6d6
7 changed files with 128 additions and 65 deletions
|
|
@ -55,9 +55,9 @@ struct swaylock_password {
|
|||
|
||||
struct swaylock_state {
|
||||
struct loop *eventloop;
|
||||
struct loop_event *clear_indicator_timer; // clears the indicator
|
||||
struct loop_event *clear_password_timer; // clears the password buffer
|
||||
struct loop_event *verify_password_timer;
|
||||
struct loop_timer *clear_indicator_timer; // clears the indicator
|
||||
struct loop_timer *clear_password_timer; // clears the password buffer
|
||||
struct loop_timer *verify_password_timer;
|
||||
struct wl_display *display;
|
||||
struct wl_compositor *compositor;
|
||||
struct zwlr_layer_shell_v1 *layer_shell;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue