Address @emersion's feedback

This commit is contained in:
Drew DeVault 2018-03-27 17:18:16 -04:00
parent 13edb19a6c
commit 52fe2688ea
5 changed files with 35 additions and 65 deletions

View file

@ -16,6 +16,7 @@ struct roots_layer_surface {
struct wl_listener surface_commit;
struct wl_listener output_destroy;
struct wl_listener output_mode;
struct wl_listener output_transform;
bool configured;
struct wlr_box geo;

View file

@ -21,7 +21,7 @@
*/
struct wlr_layer_shell {
struct wl_global *wl_global;
struct wl_list clients;
struct wl_list client_resources; // wl_resource
struct wl_listener display_destroy;
@ -32,15 +32,6 @@ struct wlr_layer_shell {
void *data;
};
struct wlr_layer_client {
struct wlr_layer_shell *shell;
struct wl_resource *resource;
struct wl_client *client;
struct wl_list surfaces;
struct wl_list link; // wlr_layer_shell::clients
};
struct wlr_layer_surface_state {
uint32_t anchor;
int32_t exclusive_zone;
@ -61,9 +52,8 @@ struct wlr_layer_surface_configure {
struct wlr_layer_surface {
struct wlr_surface *surface;
struct wlr_output *output;
struct wlr_layer_client *client;
struct wl_resource *resource;
struct wl_list link; // wlr_layer_client:surfaces
struct wlr_layer_shell *shell;
const char *namespace;
enum zwlr_layer_shell_v1_layer layer;