Closed phlpsong closed 5 months ago
I understand, indeed this could be a problem.
But this situation where one application has multiple windows is relatively rare, and should be acceptable for most users.
How should we fix it? Should we add an option to allow not automatically activating the previous application window?
I have compared Bob's behavior and found that its query window does not request to be focused, Chrom window has always been in focus, so they don't have such issue. Can we do the same?
No, I tried it and it automatically activates the previous frontend app as well.
I think this action is fine for the vast majority of users in most scenarios, especially when the user is typing in an input box, in this case hiding the Easydict window and then automatically activating the input box of the foreground application is useful, it makes it easy for the user to continue typing.
In some scenarios, activating the foreground application is necessary, for example, when using translated text to replace the original text.
Well, let's leave things as they are for now. Maybe we can see how to improve later.
ok
Please confirm the following:
Problem description
window arrangement been changed after query text
Is the issue consistently reproducible?
Reproducible
Steps to Reproduce
Screenshot
https://github.com/tisfeng/Easydict/assets/103433299/df5e475d-39ae-4e9c-a696-78b3302c30aa
Expected result
Not change window arrangement after back to the last frontmost app, current behavior is not proper in this case, I have to manually open the notes application after each query completed.
Proposed solution (optional)
Is it possible not to actively activate the previous window when closing the query window?
Device type and OS version
macOS 14.2.1
Are you willing to submit a PR to fix this issue?