diff --git a/swaylock/main.c b/swaylock/main.c index 50f145e3..9aeb4e64 100644 --- a/swaylock/main.c +++ b/swaylock/main.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -961,7 +962,7 @@ int main(int argc, char **argv) { } state.eventloop = loop_create(); - loop_add_fd(state.eventloop, wl_display_get_fd(state.display), POLL_IN, + loop_add_fd(state.eventloop, wl_display_get_fd(state.display), POLLIN, display_in, NULL); state.run_display = true;