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

Pass window exclusive and transient properties for subwindow creation #94706

Merged

Conversation

alvinhochun
Copy link
Contributor

On Windows this allows to avoid having to change the owner of the window after it has been created, which in rare circumstances may cause the window to bug out.


This PR complements #94315, but does not replace it. By setting the window owner early when creating the window, we can avoid needing to use SetWindowLongPtr with GWLP_HWNDPARENT which is what triggers the referenced bug. This allows the Project Settings window and etc. to show without having to activate the workaround in #94315, therefore avoiding the window flashing. However, setting the transient parent after the window has already been created will still require said workaround.

CC @bruvzg

On Windows this allows to avoid having to change the owner of the window
after it has been created, which in rare circumstances may cause the
window to bug out.
X11 does not need setting exclusive flag (it is not implemented).

Co-authored-by: bruvzg <[email protected]>
@akien-mga akien-mga merged commit 13c6c0c into godotengine:master Jul 26, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants