diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-19 10:10:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 10:10:38 -0700 |
commit | da9c86c608b33d78e25ced5858be579f502efd63 (patch) | |
tree | 8f943d49be6312e1a6bcb17c24daacdddad94003 | |
parent | d8badceb546483a675133235536afcdb897c0e9c (diff) | |
parent | 54b00d351e50e82cb664c57b2a416b7a37963759 (diff) | |
download | sway-da9c86c608b33d78e25ced5858be579f502efd63.tar.xz |
Merge pull request #2310 from RyanDwyer/assign-output
Implement assign to output
-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) { } 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 |