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

on-window-detected does not work when a window is revealed after being hidden #425

Closed
3 tasks done
arglin opened this issue Aug 17, 2024 · 6 comments
Closed
3 tasks done
Labels
problem Neither a bug, nor a feature request

Comments

@arglin
Copy link

arglin commented Aug 17, 2024

Thank you for the amazing work, but there is one thing that blocks me using aerospace. Here is my settings:
image

so I use raycast to open Arc, it move the arc window to workspace b for the first time created. And somehow out of habit, I will use raycast to hide Arc.
And then I switch the focus to workspace t in another monitor for other purpose. (now arc is hidden, and I am focuing on workspace t)
now I use raycast to open Arc agian, this time I guess because Arc window is already created, on-window-detected will not trigger. So the Arc will be added to the workspace t (another monitor).
This is not what I expected, because Arc window has changed to another workspace after reveal.

Can we empower on-window-detected to support detection on the existing window when reveal, or add another callback like on-window-reveal to be able trigger commands to keep the window on certain workspace?

Checklist

aerospace CLI client version: 0.14.1-Beta 5861e85b65cb7dc914a0a68027c56e2bc90510fd
AeroSpace.app server version: 0.14.1-Beta 5861e85b65cb7dc914a0a68027c56e2bc90510fd
@arglin
Copy link
Author

arglin commented Aug 17, 2024

or another strategy is:
even the window is hidden, treat it as a window in the assigned workspace b, and when the window is revealed, even tho I am in another workspace t, aerospace will still display workspace b and focus on workspace b

@EliTheSurfer
Copy link

I have the exact same problem. When a hidden window reappears, it always appears in the currently focused window, which basically breaks the workspace/monitor assignment.

@crates51
Copy link

crates51 commented Aug 25, 2024

Yeap, i also have this problem with browser extensions
image

If i reopen the browser extension(by pressing nr 1 in image) then the extension popup(nr 2 in image) apears on my left screen bugged, even tho my browser is on my right screen

If it helps: Arc Browser

Anyway, thanks for this awesome Tilling Window Manager.

@nikitabobko
Copy link
Owner

or another strategy is:
even the window is hidden, treat it as a window in the assigned workspace b, and when the window is revealed, even tho I am in another workspace t, aerospace will still display workspace b and focus on workspace b

I tend to agree with this. Also see:
#18 (comment)
#18 (comment)

@kjvdven
Copy link

kjvdven commented Sep 24, 2024

Came looking for this issue, when will this land?

I have the same with my terminal, which I toggle with a Raycast shortcut. Hope this will fix that too.

@nikitabobko
Copy link
Owner

Released in 0.15.0-Beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Neither a bug, nor a feature request
Projects
None yet
Development

No branches or pull requests

5 participants