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

Mouse warp for windows of the same app when using alternative task switcher doesn't work #208

Closed
alexnguyennn opened this issue May 1, 2024 · 7 comments

Comments

@alexnguyennn
Copy link

This is a continuation of #188 which fixed the situation for default task switcher but not the alternate one.

Situation:
Mouse warp between 2 windows belonging to the same app does not work when altTaskSwitcher is enabled.
Say, window A and window B both belonging to app X. Window A is currently focused.

Action: Focus window B -> observe that mouse has not warped or moved despite focus moving to window B.

I'd expect mouse to move to window B after focus has been activated on it.

Note: I'm using aerospace to change focus of windows which seems to work well with autoraise on windows of different apps.
In case it matters, I also have the MacOS Displays have separate spaces setting off.

Example config:

delay=0
focusDelay=0
warpX=0.5
warpY=0.5
altTaskSwitcher=true
@sbmpost
Copy link
Owner

sbmpost commented May 2, 2024

@alexnguyennn

Thanks for reporting. Will try to get this in asap.

@sbmpost
Copy link
Owner

sbmpost commented May 7, 2024

@alexnguyennn

Implemented and in master.
Note this assumes a window of the same app receives focus by means of the cmd-backtick key combination.

@alexnguyennn
Copy link
Author

thanks for the quick turnaround - just gave it a go and got mixed results. seems some apps like Firefox aren't responding to the cmd-backtick warp while others (I tested Brave works) are.
it also seems aerospace isn't switching focus using the cmd backtick mechanism as I was hoping (focusing with aerospace still only activates warp on windows of different apps) so guess it's an issue with that aerospace itself.

if this is intended behaviour (re: some apps will respond and warp but others don't) happy for this to be closed, thanks again!

@sbmpost
Copy link
Owner

sbmpost commented May 8, 2024

@alexnguyennn

it also seems aerospace isn't switching focus using the cmd backtick mechanism as I was hoping

So even if AutoRaise isn't running, AeroSpace windows do not respond to cmd-backtick. Is this correct?

Indeed AutoRaise doesn't implement cmd-backtick itself. It merely intercepts this key combination assuming the focus is going to change by means of the window manager.

When it comes to consistency, it could very well be that Firefox is misbehaving. On the other hand, it should work according to this (old) link

Related: #100, #143

@sbmpost
Copy link
Owner

sbmpost commented May 8, 2024

@alexnguyennn

I just ran Aerospace and Firefox. If I open two firefox windows and use " option / " to arrange them on a single screen, I can use cmd-backtick to switch between them and the mouse warps as it should. So you might want to double check your setup.

@alexnguyennn
Copy link
Author

@alexnguyennn

I just ran Aerospace and Firefox. If I open two firefox windows and use " option / " to arrange them on a single screen, I can use cmd-backtick to switch between them and the mouse warps as it should. So you might want to double check your setup.

thanks for the extra data point - gave it another go and found that turning off sketchybar allowed cmd-backtick manual presses to make the mouse warp to follow focus as intended. However, aerospace focus changes themselves to windows of the same still aren't triggering the mouse warp for me - wonder if that's consistent with what you saw too?

@alexnguyennn
Copy link
Author

alexnguyennn commented May 18, 2024

@alexnguyennn

Implemented and in master. Note this assumes a window of the same app receives focus by means of the cmd-backtick key combination.

think the original spec of the implementation was completed though so closing, making this work with aerospace is a separate issue at this point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants