[client] core: new message event system to debounce window size events

This commit is contained in:
Geoffrey McRae
2025-04-02 13:46:55 +11:00
parent 4b11743f18
commit 852eb6bf69
4 changed files with 39 additions and 19 deletions

View File

@@ -52,6 +52,7 @@
#include "common/cpuinfo.h"
#include "common/ll.h"
#include "message.h"
#include "core.h"
#include "app.h"
#include "audio.h"
@@ -1756,6 +1757,7 @@ restart:
g_state.state = APP_STATE_RESTART;
break;
}
lgMessage_process();
g_state.ds->wait(100);
}
@@ -1872,6 +1874,9 @@ int main(int argc, char * argv[])
egl_dynProcsInit();
gl_dynProcsInit();
if (!lgMessage_init())
return -1;
g_state.bindings = ll_new();
g_state.overlays = ll_new();
@@ -1902,6 +1907,7 @@ int main(int argc, char * argv[])
const int ret = lg_run();
lg_shutdown();
lgMessage_deinit();
config_free();