- fleshing out event system and window manager

- added tests back in for window management
This commit is contained in:
2025-12-27 07:19:53 -05:00
parent 184bc7fcdf
commit ecf1cfc29c
12 changed files with 116 additions and 52 deletions

View File

@@ -30,7 +30,11 @@ namespace fennec
static mutex lock;
static dynarray<set<event_listener*>> listeners;
static mpscq<event> queue(FENNEC_EVENT_QUEUE_SIZE);
static mpscq<event> queue(FENNEC_EVENT_QUEUE_SIZE);
event_listener::~event_listener() {
event::remove_listener(this);
}
void event::handle_events() {
lock_guard guard(lock);