]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layer-shell: chase wlr_layer_surface refactor
authorJohan Malm <jgm323@gmail.com>
Fri, 24 Sep 2021 19:51:12 +0000 (20:51 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 24 Sep 2021 19:51:12 +0000 (20:51 +0100)
src/layers.c

index c89b205f53098ab7612d9ce087ed6bd6dedd8499..434399a33ffe9af5b6fe5e34468ab8769f27f19d 100644 (file)
@@ -342,14 +342,14 @@ new_layer_surface_notify(struct wl_listener *listener, void *data)
        surface->unmap.notify = unmap_notify;
        wl_signal_add(&layer_surface->events.unmap, &surface->unmap);
 
-       wl_list_insert(&output->layers[layer_surface->client_pending.layer],
+       wl_list_insert(&output->layers[layer_surface->pending.layer],
                &surface->link);
        /*
-        * Temporarily set the layer's current state to client_pending so that
+        * Temporarily set the layer's current state to pending so that
         * it can easily be arranged.
         */
        struct wlr_layer_surface_v1_state old_state = layer_surface->current;
-       layer_surface->current = layer_surface->client_pending;
+       layer_surface->current = layer_surface->pending;
        arrange_layers(output);
        layer_surface->current = old_state;
 }