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 when parent window is focused related issues. #39145

Closed
wants to merge 1 commit into from

Conversation

Anutrix
Copy link
Contributor

@Anutrix Anutrix commented May 29, 2020

I know this is just avoiding a bug but it fixes #37732, #37731 and #37401(part 3).
Possibly more.

Initially, I thought this behaviour change would be bad. But quite a few applications don't close popups when the parent is focused.
Some like Windows Explorer(explorer.exe) just focus parent while hiding the popup(eg, shift+delete; permanent file deletion confirmation popup) behind it(but they also let popup windows be independent windows).
Some like Firefox doesn't let the user interact with the parent window till popup is closed(eg, file upload popup, close multiple tab popup, etc.).

@akien-mga akien-mga added this to the 4.0 milestone Jun 3, 2020
@akien-mga akien-mga requested a review from reduz June 3, 2020 09:32
@Meriipu
Copy link
Contributor

Meriipu commented Jun 30, 2020

Is not this long overdue being merged? I use a WM where the focus follows the mouse cursor, and the editor is completely unusable on any commit after 4758057, which introduced the issue, including current master (2760576).

Does this pull request introduce other issues? Why should a window close just because the parent is focused? That is even more draconian than closing a popup because you clicked outside it.

@akien-mga
Copy link
Member

Superseded by #39993.

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.

All popups close when the main window is hidden, minimized, moved or resized
3 participants