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

Fix progress dialog steals focus #99844

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Nov 29, 2024

Same as #97009, but I made the dialog appear on currently focused window. Unfortunately this can only work if the correct window is focused. I had to add some ungodly hacks to export dialog to make it work properly (and accidentally fixed #93481 🤷‍♂️).

godot.windows.editor.dev.x86_64_QadjiSP3oQ.mp4

Any dialog that can display editor progress potentially has this problem. If this solution is acceptable, it can be generalized into more readable solution. Alternative is adding the dialog to the top window on the window stack, but idk if such thing even exists.

Fixes #96994
Fixes #90944

@JekSun97
Copy link
Contributor

I sometimes see window focus issues when opening a project, is it possible to carry this over to importing a project?

@KoBeWi
Copy link
Member Author

KoBeWi commented Nov 29, 2024

Yes, it's already included.

Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
@KoBeWi KoBeWi force-pushed the give_back_the_focus branch from 839ea69 to 8d2778c Compare December 7, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants