aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Quantum <quantum2048@gmail.com>2021-02-24 15:15:22 -0500
committerLibravatar Tudor Brindus <me@tbrindus.ca>2021-02-25 00:43:02 -0500
commite01a3c85f65f0cbf1c196021461669c2f93d4e4d (patch)
tree18d23151d020320bf0a9252f0ee77593b23f6ee5 /include
parentoutput: Reconfigure xcursor when applying output config (diff)
downloadsway-e01a3c85f65f0cbf1c196021461669c2f93d4e4d.tar.gz
sway-e01a3c85f65f0cbf1c196021461669c2f93d4e4d.tar.zst
sway-e01a3c85f65f0cbf1c196021461669c2f93d4e4d.zip
render: handle containers without output when rendering titles
In e0a94bee8da3271f942c0881ee18a7e2d4138063, it was believed that if the container is being rendered, it must have an output. This turned out not to be the case. When rendering a container, all its children are rendered, even if the children is positioned off screen and thus not having any output. This is the cause of the crash in #6061. This commit introduces a null-check, which fixes #6061.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 5c368df2..2c973f71 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -285,6 +285,7 @@ bool container_is_fullscreen_or_child(struct sway_container *container);
285/** 285/**
286 * Return the output which will be used for scale purposes. 286 * Return the output which will be used for scale purposes.
287 * This is the most recently entered output. 287 * This is the most recently entered output.
288 * If the container is not on any output, return NULL.
288 */ 289 */
289struct sway_output *container_get_effective_output(struct sway_container *con); 290struct sway_output *container_get_effective_output(struct sway_container *con);
290 291