aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-20 10:37:52 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-20 10:37:52 +1000
commite1955c5c08d4131fd5d3e2a91ec8af05c3117eca (patch)
tree34ada4f6dfb4362aa37e6221f01a0561cc43a569 /sway/tree/container.c
parentClean up tracked outputs when an output is destroyed (diff)
downloadsway-e1955c5c08d4131fd5d3e2a91ec8af05c3117eca.tar.gz
sway-e1955c5c08d4131fd5d3e2a91ec8af05c3117eca.tar.zst
sway-e1955c5c08d4131fd5d3e2a91ec8af05c3117eca.zip
Fix crash when adding output
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index b932925d..6ea0cc94 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -764,8 +764,7 @@ void container_damage_whole(struct sway_container *container) {
764 * Return the output which will be used for scale purposes. 764 * Return the output which will be used for scale purposes.
765 * This is the most recently entered output. 765 * This is the most recently entered output.
766 */ 766 */
767static struct sway_output *container_get_effective_output( 767struct sway_output *container_get_effective_output(struct sway_container *con) {
768 struct sway_container *con) {
769 if (con->outputs->length == 0) { 768 if (con->outputs->length == 0) {
770 return NULL; 769 return NULL;
771 } 770 }