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

commands/move: Focus inactive view when no parent is found #8207

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

Conversation

anpandey
Copy link
Contributor

There are some cases where the inactive view is the null container that wraps tabbed and stacking layouts. The following demonstrates how this results in some unexpected behavior:

  1. On an empty workspace, spawn three windows.
  2. Convert the layout to stacking with layout stacking.
  3. Toggle one of the windows as floating with toggle floating.
  4. With the floating window still selected, move it to another workspace with move container to workspace.

We'd expect just one window to be selected instead of all remaining windows in the workspace. We can fix this by selecting the inactive view instead.

There are some cases where the inactive view is the null container that wraps
tabbed and stacking layouts. The following demonstrates how this results
in some unexpected behavior:

1. On an empty workspace, spawn three windows.
2. Convert the layout to stacking with `layout stacking`.
3. Toggle one of the windows as floating with `toggle floating`.
4. With the floating window still selected, move it to another workspace with
   `move container to workspace`.

We'd expect just one window to be selected instead of all remaining windows in
the workspace. We can fix this by selecting the inactive view instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant