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

Can SDL_SetKeyboardFocus be exposed for external use? #12004

Closed
pipiwoaini opened this issue Jan 17, 2025 · 2 comments
Closed

Can SDL_SetKeyboardFocus be exposed for external use? #12004

pipiwoaini opened this issue Jan 17, 2025 · 2 comments

Comments

@pipiwoaini
Copy link

“On the macOS platform, there is a slight issue with keyboard focus across multiple SDL windows, which results in the cursor not hiding when switching to relative movement. This is because the keyboard focus does not correctly shift to another window, although the mouse focus does transfer. This issue has been present since SDL2. Can we expose SDL_SetKeyboardFocus for external use? This would allow for manual setting, or we could modify the switch to relative movement to not check for the keyboard focus window, only the mouse focus.

@slouken
Copy link
Collaborator

slouken commented Jan 17, 2025

Can you provide repro steps for the original issue? Faking keyboard focus isn't likely to fix what you're seeing if the keyboard focus really hasn't shifted in the OS.

@pipiwoaini
Copy link
Author

Sorry, this might be a bug in ImGui. I’ll verify it, and if it turns out to be caused by SDL, I will reopen it.

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

No branches or pull requests

2 participants