diff options
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r-- | sway/desktop/layer_shell.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index a9803d21..5f2b74cd 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -487,7 +487,9 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) { | |||
487 | struct wlr_layer_surface_v1 *layer_surface = data; | 487 | struct wlr_layer_surface_v1 *layer_surface = data; |
488 | sway_log(SWAY_DEBUG, "new layer surface: namespace %s layer %d anchor %d " | 488 | sway_log(SWAY_DEBUG, "new layer surface: namespace %s layer %d anchor %d " |
489 | "size %dx%d margin %d,%d,%d,%d", | 489 | "size %dx%d margin %d,%d,%d,%d", |
490 | layer_surface->namespace, layer_surface->layer, layer_surface->layer, | 490 | layer_surface->namespace, |
491 | layer_surface->client_pending.layer, | ||
492 | layer_surface->client_pending.layer, | ||
491 | layer_surface->client_pending.desired_width, | 493 | layer_surface->client_pending.desired_width, |
492 | layer_surface->client_pending.desired_height, | 494 | layer_surface->client_pending.desired_height, |
493 | layer_surface->client_pending.margin.top, | 495 | layer_surface->client_pending.margin.top, |
@@ -544,7 +546,8 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) { | |||
544 | sway_layer->output_destroy.notify = handle_output_destroy; | 546 | sway_layer->output_destroy.notify = handle_output_destroy; |
545 | wl_signal_add(&output->events.destroy, &sway_layer->output_destroy); | 547 | wl_signal_add(&output->events.destroy, &sway_layer->output_destroy); |
546 | 548 | ||
547 | wl_list_insert(&output->layers[layer_surface->layer], &sway_layer->link); | 549 | wl_list_insert(&output->layers[layer_surface->client_pending.layer], |
550 | &sway_layer->link); | ||
548 | 551 | ||
549 | // Temporarily set the layer's current state to client_pending | 552 | // Temporarily set the layer's current state to client_pending |
550 | // So that we can easily arrange it | 553 | // So that we can easily arrange it |