sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 54b00d351e50e82cb664c57b2a416b7a37963759
parent 3a13455b4e23990bb8cdc96f231ab7a78c2d98df
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Thu, 19 Jul 2018 22:30:19 +1000

Implement assign to output

Eg. assign [class="Firefox"] output foo

Diffstat:
Msway/tree/view.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -564,7 +564,11 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface) { } focus = seat_get_focus_inactive(seat, workspace); } else { - // TODO: CT_ASSIGN_OUTPUT + // CT_ASSIGN_OUTPUT + struct sway_container *output = output_by_name(criteria->target); + if (output) { + focus = seat_get_focus_inactive(seat, output); + } } } // If we're about to launch the view into the floating container, then