Wrong app is focused when clicking icon from Dock if the current focus is on a different monitor #1583
Unanswered
yuliswe
asked this question in
potential-bugs
Replies: 1 comment
-
|
I created a PR #1597 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Steps to reproduce:
Expected result: App B in the main monitor gains focus
Actual result: App B flickers a second, then app A gains focus
Additional info
Video has sound:
IMG_0448.compressed_100MB.mp4
In code you can see
It seems to me this is the logic: when you click on a different monitor, the clicked monitor's workspace gains focus, then the code will make the most recent window gain focus, which happens to be app A instead.
Is it possible to fix this issue? I think maybe it needs to differentiate workspace focus by mouse clicking vs. keyboard shortcut. If it's mouse click, then I don't think it needs to focus on the most recent window.
Alternatively, maybe another solution is, instead of first calling focus workspace then focus window, can we detect the currently focused window, then make the window's workspace focused?
Do you know the correct solution for this? I can make a PR.
Beta Was this translation helpful? Give feedback.
All reactions