@@ -598,14 +598,14 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
598
598
sway_log (SWAY_DEBUG , "new layer surface: namespace %s layer %d anchor %" PRIu32
599
599
" size %" PRIu32 "x%" PRIu32 " margin %" PRIu32 ",%" PRIu32 ",%" PRIu32 ",%" PRIu32 "," ,
600
600
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 );
609
609
610
610
if (!layer_surface -> output ) {
611
611
// Assign last active output
@@ -659,13 +659,13 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
659
659
sway_layer -> output_destroy .notify = handle_output_destroy ;
660
660
wl_signal_add (& output -> events .destroy , & sway_layer -> output_destroy );
661
661
662
- wl_list_insert (& output -> layers [layer_surface -> client_pending .layer ],
662
+ wl_list_insert (& output -> layers [layer_surface -> pending .layer ],
663
663
& sway_layer -> link );
664
664
665
- // Temporarily set the layer's current state to client_pending
665
+ // Temporarily set the layer's current state to pending
666
666
// So that we can easily arrange it
667
667
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 ;
669
669
arrange_layers (output );
670
670
layer_surface -> current = old_state ;
671
671
}
0 commit comments