summaryrefslogtreecommitdiffstats
path: root/include/swaylock/swaylock.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-14 12:28:38 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-15 00:26:27 +1000
commit6921fdc6d6134fd7aaf38ffc1686623eca9bbd18 (patch)
tree0cbafde1d61ba4282e3ca73b4a312b9e82db25f9 /include/swaylock/swaylock.h
parentswaylock: Don't wait too long for surface damage before verifying (diff)
downloadsway-6921fdc6d6134fd7aaf38ffc1686623eca9bbd18.tar.gz
sway-6921fdc6d6134fd7aaf38ffc1686623eca9bbd18.tar.zst
sway-6921fdc6d6134fd7aaf38ffc1686623eca9bbd18.zip
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.
Diffstat (limited to 'include/swaylock/swaylock.h')
-rw-r--r--include/swaylock/swaylock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h
index e7165b3b..25b41a71 100644
--- a/include/swaylock/swaylock.h
+++ b/include/swaylock/swaylock.h
@@ -55,9 +55,9 @@ struct swaylock_password {
55 55
56struct swaylock_state { 56struct swaylock_state {
57 struct loop *eventloop; 57 struct loop *eventloop;
58 struct loop_event *clear_indicator_timer; // clears the indicator 58 struct loop_timer *clear_indicator_timer; // clears the indicator
59 struct loop_event *clear_password_timer; // clears the password buffer 59 struct loop_timer *clear_password_timer; // clears the password buffer
60 struct loop_event *verify_password_timer; 60 struct loop_timer *verify_password_timer;
61 struct wl_display *display; 61 struct wl_display *display;
62 struct wl_compositor *compositor; 62 struct wl_compositor *compositor;
63 struct zwlr_layer_shell_v1 *layer_shell; 63 struct zwlr_layer_shell_v1 *layer_shell;