From 22a45a63c1738e68c50eebe704fa7158f7a049cd Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 10:32:20 +0100 Subject: eventloop update and looping --- src/events.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/events.h') diff --git a/src/events.h b/src/events.h index 0af78b3..a58b7a1 100644 --- a/src/events.h +++ b/src/events.h @@ -1,6 +1,6 @@ #pragma once -#include "hashm.h" +#include "hash.h" #include "vec.h" #include "window.h" #include "wlstate.h" @@ -19,6 +19,7 @@ struct eventloop_s { struct vec_s events; window_id_t winid; struct hashmap_s windows; + bool running; }; bool wayc_eventloop_init(struct eventloop_s *loop); @@ -26,3 +27,5 @@ void wayc_eventloop_deinit(struct eventloop_s *loop); window_id_t wayc_eventloop_register(struct eventloop_s *loop, struct window_s *window); void wayc_eventloop_unregister(struct eventloop_s *loop, window_id_t winid); +bool wayc_eventloop_running(struct eventloop_s *loop); +void wayc_eventloop_upate(struct eventloop_s *loop); -- cgit v1.2.3