From 7b7f060552806d237e746bea7e84c0f5a143e91a Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 19 Jul 2023 06:37:23 +0300 Subject: [PATCH] fix: crash when moving to scratchpad tiled window (#202) --- sway/desktop/render.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 8510cf68..611c3ac3 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1399,6 +1399,10 @@ static void render_containers_linear(struct sway_output *output, for (int i = 0; i < parent->children->length; ++i) { struct sway_container *child = parent->children->items[i]; + if (container_is_scratchpad_hidden(child)) { + continue; + } + if (child->view) { struct sway_view *view = child->view; struct border_colors *colors;