aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-07-19 10:10:38 -0700
committerFurkan Sahin <furkan-dev@proton.me>2018-07-19 10:10:38 -0700
commit508512bff20fbbd59b1a412bbed6b651d61a0162 (patch)
tree8f943d49be6312e1a6bcb17c24daacdddad94003
parentf90a8eb9f2eb11e44bf7cf847066e6ede7538b71 (diff)
parent35b538a03fe50f1d8c7342bfdeab2f161de7a9d7 (diff)
Merge pull request #2310 from RyanDwyer/assign-output
Implement assign to output
-rw-r--r--sway/tree/view.c6
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