diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-23 16:48:00 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-23 16:48:00 -0500 |
commit | fe35ea633a423bad35589f25fa44b1fe71136ea3 (patch) | |
tree | 6a35c0880b4055051b585ef3090d8ab5543c6b48 | |
parent | Add new wlc thing to views (diff) | |
parent | Fix rendering of view when moving to new workspace (diff) | |
download | sway-fe35ea633a423bad35589f25fa44b1fe71136ea3.tar.gz sway-fe35ea633a423bad35589f25fa44b1fe71136ea3.tar.zst sway-fe35ea633a423bad35589f25fa44b1fe71136ea3.zip |
Merge pull request #457 from mikkeloscar/move-view-fix
Fix rendering of view when moving to new workspace
-rw-r--r-- | sway/container.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/container.c b/sway/container.c index 63374f9e..444f85fd 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -721,9 +721,7 @@ void update_visibility_output(swayc_t *container, wlc_handle output) { | |||
721 | if (container->type == C_VIEW) { | 721 | if (container->type == C_VIEW) { |
722 | wlc_view_set_output(container->handle, output); | 722 | wlc_view_set_output(container->handle, output); |
723 | wlc_view_set_mask(container->handle, container->visible ? VISIBLE : 0); | 723 | wlc_view_set_mask(container->handle, container->visible ? VISIBLE : 0); |
724 | if (container->visible) { | 724 | if (!container->visible) { |
725 | wlc_view_bring_to_front(container->handle); | ||
726 | } else { | ||
727 | wlc_view_send_to_back(container->handle); | 725 | wlc_view_send_to_back(container->handle); |
728 | } | 726 | } |
729 | } | 727 | } |