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 popup closing immediately after showing on some Linux WMs #50712

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

pouleyKetchoupp
Copy link
Contributor

When a popup is going to be closed, switch focus to the parent only if the closing popup is still being focused.

Fixes some cases with specific WMs where due to the order of events, a new popup could be immediately unfocused because a previously opened and closed popup is switching focus to the parent.

Also added a few more logs to help investigate this kind of issue.

Fixes #50367
Tested on ArchLinux with Gnome (no regression) and i3 (fixes the issue).
Kudos to @Houkime whose thorough investigation lead to finding this fix.

When a popup is going to be closed, switch focus to the parent only if
the popup is still being focused.

Fixes some cases with specific WMs where due to the order of events, a
new popup could be immediately unfocused because a previously opened
and closed popup is switching focus to the parent.
@Houkime
Copy link

Houkime commented Jul 22, 2021

Yes, this seems to fix #50367, thanks.

@akien-mga akien-mga merged commit ab732fe into godotengine:master Jul 22, 2021
@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
Development

Successfully merging this pull request may close these issues.

Popup menus (including context menus) pop up briefly and disappear if another menu is already open
3 participants