diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-01-19 00:28:45 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-01-19 00:28:45 +0100 |
| commit | f063d9653a8b47a97442818e32b3e15a8253ed9e (patch) | |
| tree | c972999ed1818d7877257c108046ff4e11d72d60 | |
| parent | e4cffbf4fcedf3a1765831b2c94356df9f40fe40 (diff) | |
Prevent crashes in handle_transform and handle_scale too
| -rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 37651d66..ef242a4c 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -524,7 +524,7 @@ static void handle_mode(struct wl_listener *listener, void *data) { static void handle_transform(struct wl_listener *listener, void *data) { struct sway_output *output = wl_container_of(listener, output, transform); - if (!output->enabled) { + if (!output->enabled || !output->configured) { return; } arrange_layers(output); @@ -539,7 +539,7 @@ static void update_textures(struct sway_container *con, void *data) { static void handle_scale(struct wl_listener *listener, void *data) { struct sway_output *output = wl_container_of(listener, output, scale); - if (!output->enabled) { + if (!output->enabled || !output->configured) { return; } arrange_layers(output); |
