diff options
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r-- | sway/desktop/layer_shell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 5c96659a..c18f51c7 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -238,11 +238,12 @@ static void handle_destroy(struct wl_listener *listener, void *data) { | |||
238 | wl_list_remove(&sway_layer->unmap.link); | 238 | wl_list_remove(&sway_layer->unmap.link); |
239 | wl_list_remove(&sway_layer->surface_commit.link); | 239 | wl_list_remove(&sway_layer->surface_commit.link); |
240 | if (sway_layer->layer_surface->output != NULL) { | 240 | if (sway_layer->layer_surface->output != NULL) { |
241 | struct sway_output *output = sway_layer->layer_surface->output->data; | ||
242 | arrange_layers(output); | ||
243 | |||
241 | wl_list_remove(&sway_layer->output_destroy.link); | 244 | wl_list_remove(&sway_layer->output_destroy.link); |
242 | } | 245 | } |
243 | struct sway_output *output = sway_layer->layer_surface->output->data; | ||
244 | free(sway_layer); | 246 | free(sway_layer); |
245 | arrange_layers(output); | ||
246 | } | 247 | } |
247 | 248 | ||
248 | static void handle_map(struct wl_listener *listener, void *data) { | 249 | static void handle_map(struct wl_listener *listener, void *data) { |