mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Address emersions comments on output re-enabling
This commit is contained in:
parent
a1b5b93d29
commit
a0bbe67076
3 changed files with 4 additions and 12 deletions
|
|
@ -252,7 +252,7 @@ static void unmap(struct sway_layer_surface *sway_layer) {
|
|||
return;
|
||||
}
|
||||
struct sway_output *output = wlr_output->data;
|
||||
if (output == NULL) {
|
||||
if (output == NULL || output->swayc == NULL) {
|
||||
return;
|
||||
}
|
||||
output_damage_surface(output, sway_layer->geo.x, sway_layer->geo.y,
|
||||
|
|
@ -279,7 +279,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
|
|||
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;
|
||||
if (output != NULL) {
|
||||
if (output != NULL && output->swayc != NULL) {
|
||||
arrange_layers(output);
|
||||
}
|
||||
wl_list_remove(&sway_layer->output_destroy.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue