-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add focus-window-previous
action
#811
Conversation
Been using this for a few days now without issue, so it's ready for a final review :) |
Yeah, sorry, I have this checked out, but I've been very busy with uni. |
Did some minor cleanups |
Hmm, what if we store the previous focused window just in the Niri state itself, rather than on each window? I think that should be simpler and should fix the layer-shell edge cases. I'll try doing it tomorrow when my brain is a bit clearer |
Could you please try this branch again? I made the change above. |
Will do. This approach also does look nicer. |
Appears to be working as intended! |
Thanks! |
This action focuses the previously focused window. As a parallel to
focus-workspace-previous
, this works across outputs, or within the same workspace, and should come in handy for users that have scripts making use offocus-window
.