Fix crash when adding output

This commit is contained in:
Ryan Dwyer 2018-08-20 10:37:52 +10:00
parent a49e4b13bf
commit e1955c5c08
3 changed files with 11 additions and 4 deletions

View file

@ -764,8 +764,7 @@ void container_damage_whole(struct sway_container *container) {
* Return the output which will be used for scale purposes.
* This is the most recently entered output.
*/
static struct sway_output *container_get_effective_output(
struct sway_container *con) {
struct sway_output *container_get_effective_output(struct sway_container *con) {
if (con->outputs->length == 0) {
return NULL;
}