mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
47ab4c97b2
Config.Focused represents window interaction focus, which should only change when the window gains or loses user interaction capability. The focus state is already correctly handled in: - onResume → focused = true (window gains interaction focus) - onPause → focused = false (window loses interaction focus) Therefore, sending additional ConfigEvent in onStop and onSurfaceDestroyed is redundant because: - onStop is always preceded by onPause - onSurfaceDestroyed is a low-level surface event unrelated to focus This cleanup aligns the Android implementation with the correct semantic that Config.Focused = window interaction focus, not view focus or surface state. Signed-off-by: CoyAce <akeycoy@gmail.com>