diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:17:45 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:17:45 +0100 |
| commit | 55991c396cddc8ec27182dc5cfe64fdef61da064 (patch) | |
| tree | e2e5b80a2d27d3d717a3be1e7240ecb5cd1b298c /src/events.h | |
| parent | 80dcfa99fef3684d506ee8f96298563433b10e74 (diff) | |
turning hashset into hashmap
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 8e27576..bdbe6d2 100644 --- a/src/events.h +++ b/src/events.h @@ -1,5 +1,6 @@ #pragma once +#include "hashm.h" #include "vec.h" #include "window.h" #include "wlstate.h" @@ -15,7 +16,9 @@ struct event_s { struct eventloop_s { struct wlstate_s state; - vec_s<struct event_s> events; + struct vec_s<struct event_s> events; + window_id_t winid; + struct hashmap_s<window_id_t, struct window_s *> windows; }; bool wayc_eventloop_init(struct eventloop_s *loop); |
