Skip to content

Conversation

@smichel17
Copy link
Member

This is part of a series of PRs. See the first one for more context.

  1. Global switch windows - move to **visually** closest window #1076
  2. Global move -- allow switching to empty monitors #1081
  3. Add global move selected window hotkey #1082 « 📌 YOU ARE HERE

This is backwards compatible. However, I think we should eventually make this the default (after I have used it for a long period of time and the animations are improved). So, I updated the text to make this one described as just "move window to the left" and clarified that the current default stays on the same monitor.

Only implemented horizontally, but done in one commit to avoid updating
the compiled gschema twice.
Copy link
Member Author

@smichel17 smichel17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither this nor the other PRs are my cleanest code… there is a fair amount of duplicate index-finding now that we could probably clean up. But I wasn't sure how much the implementation would diverge, so I opted for copy-pasting the relevant pieces of logic instead of reusing functions, to give freedom to change whatever is needed.

tiling.js Outdated
}
let column = this[index];
if (targetRow < 0 || targetRow >= column.length) {
// TODO: Move to workspace above/below
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to give more thought to how switching up/down should work when there is a monitor above.

Only kind of works.. when moving to a monitor to the side, then down,
you end up back on the first monitor.
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.

2 participants