ANativeWindow: make the while loop hack work on main thread

This commit is contained in:
Mis012
2024-04-17 19:27:16 +02:00
parent db3ba9b929
commit 21627aecad
2 changed files with 4 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ struct native_message_queue {
bool is_main_thread;
};
static GThread *main_thread_id;
GThread *main_thread_id;
void prepare_main_looper(JNIEnv* env) {
main_thread_id = g_thread_self();