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

Fixed an issue where the ImGui popup window steals focus when not on top #72604

Merged

Conversation

katemonster33
Copy link
Contributor

@katemonster33 katemonster33 commented Mar 25, 2024

Summary

Bugfixes "ImGui popup was stealing window focus when another window was on top of it"

Purpose of change

Fixes: #72600

Describe the solution

Popup had code baked in to try and make sure a button was focused - don't let that code execute when the window is not focused

Describe alternatives you've considered

Testing

Open main menu, click "World", select any world, try to delete it, and when the popup shows asking if you're sure, press '?' key to open keybindings. Verify that the keybindings screen remains focused.

Additional context

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Mar 25, 2024
@katemonster33 katemonster33 force-pushed the imgui_popup_focus_stealing branch from 6972b61 to 51c9de8 Compare March 26, 2024 16:07
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Mar 26, 2024
@dseguin dseguin merged commit e442936 into CleverRaven:master Mar 26, 2024
20 of 26 checks passed
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[imgui] Second imgui UI window breaks focus/input
2 participants