diff options
author | 2018-10-08 23:27:19 +1000 | |
---|---|---|
committer | 2018-10-08 23:27:19 +1000 | |
commit | 88317b59ce1d8546ef52a897a226fe62b516d059 (patch) | |
tree | 75dcbafb8562e318238ef311b434b68945ed8482 /sway | |
parent | Introduce container_is_transient_for (diff) | |
download | sway-88317b59ce1d8546ef52a897a226fe62b516d059.tar.gz sway-88317b59ce1d8546ef52a897a226fe62b516d059.tar.zst sway-88317b59ce1d8546ef52a897a226fe62b516d059.zip |
Use current state when rendering transient containers
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/render.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 765317db..3617da87 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -962,8 +962,9 @@ void output_render(struct sway_output *output, struct timespec *when, | |||
962 | fullscreen_con->current.focused); | 962 | fullscreen_con->current.focused); |
963 | } | 963 | } |
964 | 964 | ||
965 | for (int i = 0; i < workspace->floating->length; ++i) { | 965 | for (int i = 0; i < workspace->current.floating->length; ++i) { |
966 | struct sway_container *floater = workspace->floating->items[i]; | 966 | struct sway_container *floater = |
967 | workspace->current.floating->items[i]; | ||
967 | if (container_is_transient_for(floater, fullscreen_con)) { | 968 | if (container_is_transient_for(floater, fullscreen_con)) { |
968 | render_floating_container(output, damage, floater); | 969 | render_floating_container(output, damage, floater); |
969 | } | 970 | } |