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

sway/workspaces: Made the focused check in "current-only" fully recursive #3847

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruceblore
Copy link
Contributor

I was experiencing a similar version of issue #3369. However, in my case, the issue only kicked in when a tabbed container was in use. I noticed that PR #3336 attempted to address the issues with current-only by not only checking whether the workspace itself is focused, but also whether any window within it is focused.

However, it did not check recursively. This meant that if the focused window was at the top level, it would be detected. Or if it was in a container that sway decided to also indicate as focused. (It's really not clear to me how Sway decides when to indicate a container as focused.) But if the window is in a container not indicated as focused, it will be missed. This seems to happen often with tabbed containers. Changing this check to be recursive seems to fix it.

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

Successfully merging this pull request may close these issues.

1 participant