Files
gio/app
CoyAce 760369174d app: [iOS] fix focus event for iOS 13.0+ with backward compatibility
UIScene notifications are the correct way to track window focus on
iOS 13.0+, because the Key Window API is scene-level on iOS 13.0+,
but we need to maintain support for iOS 12 and earlier.

Implementation strategy:
- iOS 13.0+: Use UIScene notifications (DidActivate/WillDeactivate)
- iOS 12 and earlier: Keep existing UIWindow notifications as fallback
- Add runtime version checks to select the appropriate API

Key changes in os_ios.m:
- Add @available(iOS 13.0, *) checks
- Register both notification types with conditional logic
- Ensure proper cleanup of observers when moving between windows

See: https://developer.apple.com/documentation/uikit/uiscene?language=objc

Fixes: https://lists.sr.ht/~eliasnaur/gio/%3CCAMAFT9Uyh_JWrkQQt+AmekJWFBqhZPsP_3ZxC1fUNB+=VGGorw@mail.gmail.com%3E
Signed-off-by: CoyAce <akeycoy@gmail.com>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2026-03-10 10:08:49 +01:00
..
2026-02-18 08:36:57 +01:00
2025-12-15 22:20:54 +01:00
2026-02-18 08:36:57 +01:00
2026-02-18 08:36:57 +01:00
2024-06-27 17:48:08 +02:00
2026-02-18 08:36:57 +01:00
2026-02-18 08:36:57 +01:00
2026-02-18 08:36:57 +01:00
2026-03-09 09:07:09 +01:00
2025-12-15 22:20:54 +01:00
2026-02-18 08:36:57 +01:00
2025-12-15 22:20:54 +01:00
2026-02-18 08:36:57 +01:00
2026-02-18 08:36:57 +01:00