diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-19 22:30:19 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-19 22:36:38 +1000 |
commit | 54b00d351e50e82cb664c57b2a416b7a37963759 (patch) | |
tree | 414116c3aada3e4f462c54204e9aa6dca5234b54 /sway/tree/view.c | |
parent | Merge pull request #2309 from RyanDwyer/xwayland-set-hints (diff) | |
download | sway-54b00d351e50e82cb664c57b2a416b7a37963759.tar.gz sway-54b00d351e50e82cb664c57b2a416b7a37963759.tar.zst sway-54b00d351e50e82cb664c57b2a416b7a37963759.zip |
Implement assign to output
Eg. assign [class="Firefox"] output foo
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index fc31699c..7881e6d7 100644 --- 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) { | |||
564 | } | 564 | } |
565 | focus = seat_get_focus_inactive(seat, workspace); | 565 | focus = seat_get_focus_inactive(seat, workspace); |
566 | } else { | 566 | } else { |
567 | // TODO: CT_ASSIGN_OUTPUT | 567 | // CT_ASSIGN_OUTPUT |
568 | struct sway_container *output = output_by_name(criteria->target); | ||
569 | if (output) { | ||
570 | focus = seat_get_focus_inactive(seat, output); | ||
571 | } | ||
568 | } | 572 | } |
569 | } | 573 | } |
570 | // If we're about to launch the view into the floating container, then | 574 | // If we're about to launch the view into the floating container, then |