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

Focus Bug Report #11

Closed
wants to merge 1 commit into from
Closed

Focus Bug Report #11

wants to merge 1 commit into from

Conversation

dfontana
Copy link
Owner

While working on #5 / #10 i noticed focus was getting lost after the window was hidden then reshown (set_visible(false)). When I checked out master again the bug did not produce, indicating it was something on my branch. I created this PR/branch to minimize the changes to create the issue - which appears to just be bumping wry/tao version.

Effectively, it looks like: tauri-apps/wry#184

Reproducing

  • Check out this branch
  • cargo run (You'll need yarn to get the resources to build, sorry 😬 )
  • Open the window (cmd+space), notice you have focus
  • Click out the window (which triggers the set_focus(false) in the event loop)
  • Open the window (cmd+space) again, but notice focus isn't on it anymore.

WRY Version

I was already on a relatively new version, and the diff shows that: https://github.com/tauri-apps/wry/compare/81f3218d9ac55a987b050f574774afcaa0b5c2f7..761b2b59fe0434b3458d99ed599394af0e1e3962

The only meaningful change was in WebContext, which doesn't really sound like a source of the problem

TAO Version

Conversely, Wry is currently pinned to 0.2.6 of TAO; whereas my PR had to pin to a newer version to get the keyboard/system tray improvements. When we compare that diff, it's much larger: https://github.com/tauri-apps/tao/compare/afd1316a7e0289ec34fb49f12ccfb5e3c1387b7b..d1065e3d9e4f0f48b366ce9736a57b5866c003db

What stands out: there were focus changes which appear to have added this logic

@dfontana dfontana closed this Jun 13, 2021
@dfontana dfontana mentioned this pull request Jun 13, 2021
@dfontana dfontana deleted the focus_bug_report branch July 18, 2021 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant