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

Allow output identifier in move, focus, and assign #3314

Closed
wants to merge 1 commit into from

Conversation

RedSoxFan
Copy link
Member

@RedSoxFan RedSoxFan commented Dec 20, 2018

This allows output identifiers to be used with the following commands:

  • move container|window|workspace to output
  • focus output
  • assign [criteria] output

This allows output identifiers to be used with the following commands:
- `move container|window to output`
- `focus output`
- `assign [criteria] output`
@@ -194,6 +194,9 @@ static struct cmd_results *focus_output(struct sway_seat *seat,
}
char *identifier = join_args(argv, argc);
struct sway_output *output = output_by_name(identifier);
if (!output) {
output = output_by_identifier(identifier);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could replace output_by_{name,identifier} by a single function? Don't know if we use one without the other somewhere.

@RedSoxFan
Copy link
Member Author

Superseded by #3315

@RedSoxFan RedSoxFan closed this Dec 20, 2018
@RedSoxFan RedSoxFan deleted the commands-output-id branch December 20, 2018 19:23
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.

2 participants