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

When menu is hidden, keybindings don't work until you press Esc or click on screen #201

Open
mooreye opened this issue Jan 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mooreye
Copy link

mooreye commented Jan 23, 2024

If you start the app with hidden menu, no keybindings work until you press Esc or click on the screen. The focus seems to be on the Menu item in the left upper corner, as pressing arrow keys will highlight it.

Issue occurred on flatpak.

@mooreye mooreye changed the title When menu is hidden, keybindings don't work until you click on the screen When menu is hidden, keybindings don't work until you press Esc or click on screen Jan 23, 2024
@k4zmu2a k4zmu2a added the bug Something isn't working label Jan 26, 2024
k4zmu2a added a commit that referenced this issue Jan 27, 2024
@k4zmu2a
Copy link
Owner

k4zmu2a commented Jan 27, 2024

This bug is caused by the hidden window that houses menu button.
This window steals focus when it is first drawn at game start.
My guess is that I introduced this bug with the last ImGui update.

I fixed it by replacing the window with a hidden menu bar.
The drawback: new menu bar accepts mouse inputs on its entire invisible length.
I might have to switch back to the hidden window approach if this ever becomes an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants