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

Introduce Window option to contain multiple Viewports with a focused Control #89772

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

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Mar 22, 2024

Introduce Window option to contain multiple Viewports with a focused Control

This PR introduces an option Window.multi_viewport_focus to allow all contained Viewports to keep their focused Control independently from other Viewports in the same Window.

Alternative to #62421
Supersedes alternative #79480 and doesn't change existing behavior
Implements parts of godotengine/godot-proposals#385
Implements parts of godotengine/godot-proposals#4295

MRP for testing: MultiFocusPerWindow.zip

Updated 2024-03-23: I have discarded my first approach, because of the added complexity caused by multiple edge cases.

…sed `Control`

This PR introduces an option `Window.multi_viewport_focus` to allow all
contained `Viewports` to keep their focused `Control` independently from
other Viewports in the same `Window`.
@Sauermann Sauermann force-pushed the fix-focus-per-window-2 branch from e9730cd to 65e88eb Compare March 23, 2024 19:37
@Sauermann Sauermann changed the title Introduce Viewport option to have own focus within a Window Introduce Window option to contain multiple Viewports with a focused Control Mar 23, 2024
@Sauermann Sauermann marked this pull request as ready for review March 23, 2024 20:02
@Sauermann Sauermann requested review from a team as code owners March 23, 2024 20: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.

2 participants