I'm not sure this approach is correct. On all other platforms — X11, Wayland, macOS — the platform's windowing system is the source of truth for focus, and WM_NCACTIVATE(TRUE) is ultimately triggered by a focus event from that platform. Android does have platform-level focus management, but since we don't use all platform primitives and I plan to replace the View-based windowing with custom GL rendering to avoid unnecessary overhead, relying on it here would not be appropriate. For now the issue only manifests in wineandroid which isn't officially supported. Would it be worth changing the win32u behaviour in a way that could affect other platforms, given that the current code works there? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10945#note_142217