diff options
author | minus <minus@mnus.de> | 2015-08-25 20:43:37 +0200 |
---|---|---|
committer | minus <minus@mnus.de> | 2015-08-25 20:43:37 +0200 |
commit | 95353051379126f99d310936a46052b4a89bd880 (patch) | |
tree | 06f9219532f6f057410910dbfe43d3884acd90bc | |
parent | c3737e80ba3223a33434e47fd2c5fb54bae82a40 (diff) |
fixed moving to other output and visibility
-rw-r--r-- | sway/container.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index acce050f..6fbfa360 100644 --- a/sway/container.c +++ b/sway/container.c @@ -522,6 +522,7 @@ void set_view_visibility(swayc_t *view, void *data) { } bool visible = *(bool *)data; if (view->type == C_VIEW) { + wlc_view_set_output(view->handle, swayc_parent_by_type(view, C_OUTPUT)->handle); wlc_view_set_mask(view->handle, visible ? VISIBLE : 0); if (visible) { wlc_view_bring_to_front(view->handle); @@ -535,7 +536,7 @@ void set_view_visibility(swayc_t *view, void *data) { void update_visibility(swayc_t *container) { swayc_t *ws = swayc_active_workspace_for(container); - bool visible = (ws->parent->focused == container); + bool visible = (ws->parent->focused == ws); sway_log(L_DEBUG, "Setting visibility of container %p to %s", container, visible ? "visible" : "invisible"); container_map(ws, set_view_visibility, &visible); } |