-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Keep focus on floating window when showing ProgressDialog #83290
Keep focus on floating window when showing ProgressDialog #83290
Conversation
841db2c
to
be88020
Compare
be88020
to
9ae48c7
Compare
That PR would allow to get rid of the whole Though the current code is only limited to the wrapped windows, so we won't get popups or transient windows unexpectedly getting progress dialog. This is a safer approach, not sure if it matters. |
btw the linked issue is already "fixed" so this PR can be postponed too probably. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks fine to me, although I think this should be a part of the popup behavior in the editor, not a part of ProgressDialog
specifically. But we can look into it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it on Linux X11 (KDE) a few days ago, worked fine for me.
Thanks! |
Fixes #78672
This uses the first approach described in #78672 (comment)
I tested this only on Linux (KDE neon 5.27 22.04 - X11 - Vulkan (Forward+) - dedicated AMD Radeon Graphics (RADV NAVI23) - AMD Ryzen 5 5600 6-Core Processor (12 Threads)).
Other OSes should be tested as well, just in case any of them doesn't like quick focus changes.
I have done this patch ~2 months ago, but I never get to publish it 🙈.
Initially, I want to base this PR to #79261, but it's not merged.