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 internal events not being delivered to some Window types #81243

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Sep 2, 2023

fix comment godotengine/godot-demo-projects#925 (comment) for the Gui in 3D Demo of godotengine/godot-demo-projects#925 (it doesn't fix the issue for the Demo in current master of the demo-projects repository).
part of #77189

AcceptDialog, Popup and PopupMenu no longer subscribe to "window_input" signal, because that is only sent if it is not an internal signal.

Instead they receive events in _input_from_window. They ensure that the event is also propagated to their super-function, just like previously the signals would be treated.

Updated 2023-09-12: Fix merge conflict

@KoBeWi
Copy link
Member

KoBeWi commented Nov 9, 2023

Tested on top of master and it doesn't seem to fix the linked problem.

@Sauermann
Copy link
Contributor Author

Thanks for testing. Then I will need to check out, what has changed in the meantime.

@Sauermann
Copy link
Contributor Author

Please note, that this PR doesn't fix the Gui in 3D Demo in the master branch of the demo-projects repository, but the Gui in 3D Demo of the PR godotengine/godot-demo-projects#925. I have checked again and this PR still works for me.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 10, 2023

Ok sorry, I thought the issue is more generic and the demo changes are unrelated.

scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
`AcceptDialog`, `Popup` and `PopupMenu` no longer subscribe to
"window_input" signal, because that is only sent if it is not an
internal signal.

Instead they receive events in `_input_from_window`. They ensure that
the event is also propagated to their super-function, just like
previously the signals would be treated.
@YuriSizov YuriSizov merged commit 8a9aa30 into godotengine:master Dec 19, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@Sauermann Sauermann deleted the fix-window-events branch December 29, 2023 18:07
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.

3 participants