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

Cannot focus the selected window #2669

Closed
richardchui opened this issue Jul 13, 2023 · 8 comments
Closed

Cannot focus the selected window #2669

richardchui opened this issue Jul 13, 2023 · 8 comments
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue

Comments

@richardchui
Copy link

After switching to the selected window, that window does not receive the focus. Would require an additional mouse click.

@richardchui richardchui added the bug Something isn't working label Jul 13, 2023
@lwouis
Copy link
Owner

lwouis commented Jul 13, 2023

Could you please share a video of the issue? Which app is affected? All apps or a specific one?

@richardchui
Copy link
Author

It seems to happen when the apps are on different spaces. When I first switch to a new app, it won't get focus. If I Alt-Tab to it again (it is now first in the list), it will get focus.

I am not sure if you can see my actions from this video.

@richardchui
Copy link
Author

Any update on the above? Thanks!

@lwouis
Copy link
Owner

lwouis commented Jul 21, 2023

Hi @richardchui,

I just tested this, and it focuses correctly on my machine. I think something is going on with your setup.

  • Does this happen if the windows are on the same Space?
  • When you switch to the other Space, and the window is not focused, I can see indeed that the window traffic-light buttons (i.e. the buttons to minimize, fullscreen, or close the window) are not colored. This confirms that the window is indeed not focused. What is the app title in the menubar at that point in time? It's not captured on the video. I have a feeling that it could be that you have another app running on your system that for some reason grabs focus right after you switch Space. Maybe it's that screenshot app I see listed in AltTab; not sure.

Thank you

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Jul 21, 2023
@richardchui
Copy link
Author

Hi @lwouis

It usually happens when the windows are on different spaces.

As you mentioned, it is possible that another app may grab the focus when switching spaces, and may have nothing to do with AltTab. I will try to investigate more.

AltTab is a great tool and it saves me a lot of trouble when trying to get to the right window. Thank you so much for your effort!!!

@lwouis
Copy link
Owner

lwouis commented Jul 21, 2023

Thank you @richardchui

Could you please share what the app title is in the menubar, when you switch to another window, but it is not focused? It could let us know right away which app is stealing focus.

Thank you

@richardchui
Copy link
Author

Hi @lwouis ,

The menubar is show the title of the app that I am switching from.

@lwouis
Copy link
Owner

lwouis commented Jul 21, 2023

It's not that clear then what is happening. I'll close this ticket for now since it's not actionable with the current data we have. In the meantime, we discuss a general potential new implementation of window tracking/focusing here: #447

@lwouis lwouis closed this as completed Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants