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

[DisplayServer] Add method to check if native window is focused. #78262

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jun 15, 2023

Fixes #77824

In some cases Window object callbacks are set after it's shown, and focus event arrived, therefore it's necessary to check current window status.

@bruvzg bruvzg added this to the 4.x milestone Jun 15, 2023
@bruvzg bruvzg force-pushed the ds_window_focus branch 2 times, most recently from 1f0b6a3 to bba31c8 Compare June 15, 2023 09:45
@bruvzg bruvzg marked this pull request as ready for review June 15, 2023 09:46
@bruvzg bruvzg requested review from a team as code owners June 15, 2023 09:46
@akien-mga akien-mga merged commit 014b395 into godotengine:master Jun 16, 2023
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga modified the milestones: 4.x, 4.1 Jun 26, 2023
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.

Initial window focus state is incorrect, has_focus() returns false when it should return true
3 participants