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

workspace=__focused__ criterion is ignored for non-leaf containers on focus command #7218

Open
omgold opened this issue Oct 13, 2022 · 1 comment · May be fixed by #7955
Open

workspace=__focused__ criterion is ignored for non-leaf containers on focus command #7218

omgold opened this issue Oct 13, 2022 · 1 comment · May be fixed by #7955
Labels
bug Not working as intended

Comments

@omgold
Copy link

omgold commented Oct 13, 2022

Please fill out the following:

  • Sway Version: 1.7

  • Configuration File:

Default config plus this:

bindsym $mod+1 [workspace=__focused__ con_mark="x"] focus
bindsym $mod+Ctrl+1 mark --toggle x
  • Description:

The first keybindings above should focus a container with the mark "x", but only if it is on the current workspace.
This only works for me, if the container is a leaf (i.e. application window). But if I put the mark on a container higher up in the tree, the workspace=__focused__ restriction is ignored. Then the container will be focused (and the workspace changed) anyway, despite a different workspace being active/shown.

@omgold omgold added the bug Not working as intended label Oct 13, 2022
@markstos
Copy link
Contributor

markstos commented Nov 5, 2022

I reviewed your syntax and the man 5 sway docs and I agree this appears to be a bug.

@bonsaiiV bonsaiiV linked a pull request Feb 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

Successfully merging a pull request may close this issue.

2 participants