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

[3.x] Allow changing exclusive of already popped up Popup #61483

Merged
merged 1 commit into from
May 31, 2022

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented May 27, 2022

Fixes #43901.

I've added Control::set_modal_exclusive() which allows changing modal_exclusive for a Control already shown as a modal. Made it protected so the change of Control::data.modal_exclusive could be trigerred from Popup::set_exclusive(). And I'm not sure if it's needed to be public / exposed to scripting.

3.x only as Popup in master extends Window and Window::set_exclusive() seems to properly propagate the value to the DisplayServer.

@kleonc kleonc added this to the 3.5 milestone May 27, 2022
@kleonc kleonc requested a review from a team as a code owner May 27, 2022 23:18
@akien-mga akien-mga merged commit b449285 into godotengine:3.x May 31, 2022
@akien-mga
Copy link
Member

Thanks!

@kleonc kleonc deleted the popup-update-exclusive-when-shown branch May 31, 2022 13:16
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.

2 participants