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 editor re-focus on debugger break on Windows #63286

Merged
merged 1 commit into from Jul 21, 2022

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Jul 21, 2022

This fixes the once more resurrected bug by which the editor can't claim focus on a debugger break. Repeat with me: on Windows the permission to get focus stealed must be re-granted every time (after new user input).

Quoting https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-allowsetforegroundwindow:

The process specified by dwProcessId loses the ability to set the foreground window the next time the user generates input [...].

Additionally, the various cases of (p_)allow_focus_steal_pid are renamed to (p_)editor_pid and the relevant command-line option is hyphenated instead of "underscorated".

@akien-mga akien-mga merged commit 19db9ed into godotengine:master Jul 21, 2022
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the fix_debugger_focus branch July 22, 2022 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants