Skip to content

Commit d999439

Browse files
author
Kirill Primak
committed
layer-shell: chase wlr layer surface refactor
1 parent eb03298 commit d999439

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sway/desktop/layer_shell.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -598,14 +598,14 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
598598
sway_log(SWAY_DEBUG, "new layer surface: namespace %s layer %d anchor %" PRIu32
599599
" size %" PRIu32 "x%" PRIu32 " margin %" PRIu32 ",%" PRIu32 ",%" PRIu32 ",%" PRIu32 ",",
600600
layer_surface->namespace,
601-
layer_surface->client_pending.layer,
602-
layer_surface->client_pending.anchor,
603-
layer_surface->client_pending.desired_width,
604-
layer_surface->client_pending.desired_height,
605-
layer_surface->client_pending.margin.top,
606-
layer_surface->client_pending.margin.right,
607-
layer_surface->client_pending.margin.bottom,
608-
layer_surface->client_pending.margin.left);
601+
layer_surface->pending.layer,
602+
layer_surface->pending.anchor,
603+
layer_surface->pending.desired_width,
604+
layer_surface->pending.desired_height,
605+
layer_surface->pending.margin.top,
606+
layer_surface->pending.margin.right,
607+
layer_surface->pending.margin.bottom,
608+
layer_surface->pending.margin.left);
609609

610610
if (!layer_surface->output) {
611611
// Assign last active output
@@ -659,13 +659,13 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
659659
sway_layer->output_destroy.notify = handle_output_destroy;
660660
wl_signal_add(&output->events.destroy, &sway_layer->output_destroy);
661661

662-
wl_list_insert(&output->layers[layer_surface->client_pending.layer],
662+
wl_list_insert(&output->layers[layer_surface->pending.layer],
663663
&sway_layer->link);
664664

665-
// Temporarily set the layer's current state to client_pending
665+
// Temporarily set the layer's current state to pending
666666
// So that we can easily arrange it
667667
struct wlr_layer_surface_v1_state old_state = layer_surface->current;
668-
layer_surface->current = layer_surface->client_pending;
668+
layer_surface->current = layer_surface->pending;
669669
arrange_layers(output);
670670
layer_surface->current = old_state;
671671
}

0 commit comments

Comments
 (0)