mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Fix two segfaults when destroying outputs
This commit is contained in:
parent
59f362196b
commit
8aedc042ee
2 changed files with 4 additions and 3 deletions
|
|
@ -238,11 +238,12 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
|
|||
wl_list_remove(&sway_layer->unmap.link);
|
||||
wl_list_remove(&sway_layer->surface_commit.link);
|
||||
if (sway_layer->layer_surface->output != NULL) {
|
||||
struct sway_output *output = sway_layer->layer_surface->output->data;
|
||||
arrange_layers(output);
|
||||
|
||||
wl_list_remove(&sway_layer->output_destroy.link);
|
||||
}
|
||||
struct sway_output *output = sway_layer->layer_surface->output->data;
|
||||
free(sway_layer);
|
||||
arrange_layers(output);
|
||||
}
|
||||
|
||||
static void handle_map(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue