On Fri Feb 27 09:15:44 2026 +0000, Rémi Bernon wrote:
What about doing that in `android_init` instead? These two calls are only relevant for the `explorer.exe /desktop=shell,,android` case, i.e. when we are actually running the Android desktop inside the JVM process.
They are not generally required for every `wineandroid` initialization. Moving them into `android_init` would make them run unconditionally. In particular, it would spawn event queue file descriptors in non-desktop windows where it will remain unused. ANDROID_CreateDesktop is the point where we know we are creating the Android-backed desktop and running inside the JVM context, so keeping the calls there limits the behavior strictly to the scenario where it is required. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9874#note_130705