diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:32:20 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:32:20 +0100 |
| commit | 22a45a63c1738e68c50eebe704fa7158f7a049cd (patch) | |
| tree | 3c505474d72c552fa58364d6e803420ba25a9098 /src/events.h | |
| parent | 17cd02e7a535930db9bbc6ed8084830f50f7be84 (diff) | |
eventloop update and looping
Diffstat (limited to 'src/events.h')
| -rw-r--r-- | src/events.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<struct event_s> events; window_id_t winid; struct hashmap_s<window_id_t, struct window_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); |
