commit fe35ea633a423bad35589f25fa44b1fe71136ea3
parent ef407559e22f4a8c8762702ba3270eaaf19ea0ba
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 23 Jan 2016 16:48:00 -0500
Merge pull request #457 from mikkeloscar/move-view-fix
Fix rendering of view when moving to new workspace
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sway/container.c b/sway/container.c
@@ -721,9 +721,7 @@ void update_visibility_output(swayc_t *container, wlc_handle output) {
if (container->type == C_VIEW) {
wlc_view_set_output(container->handle, output);
wlc_view_set_mask(container->handle, container->visible ? VISIBLE : 0);
- if (container->visible) {
- wlc_view_bring_to_front(container->handle);
- } else {
+ if (!container->visible) {
wlc_view_send_to_back(container->handle);
}
}