Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 10, gesture control, minimize app - not expected behavior #3857

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Android 10, gesture control, minimize app - not expected behavior #3857

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Labels
invalid This doesn't seem right

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.1
Reported for operating system, platform: Android (All), All

Comments on the original bug report:

On 2020-10-22 06:48:47 +0000, Vortelio wrote:

There is no way to reliably catch the loss of window focus.

With the classic navigation of three buttons, if minimize the app, the following order is performed:

onPause ()
onWindowFocusChanged ()
nativeFocusChanged (false)
handleNativeState ()
nativePause ()

If gesture control is activated, the order is as follows:

onPause ()
handleNativeState ()
nativePause ()
onWindowFocusChanged ()
nativeFocusChanged (false)

On 2020-10-22 09:30:06 +0000, Sylvain wrote:

You get loss of focus with the SDL_WINDOWEVENT_FOCUS_LOST, you don't need to use the java side.

But java onWindowFocusChanged() should give you the focus.

@SDLBugzilla SDLBugzilla added bug invalid This doesn't seem right labels Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant