diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 19:27:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 19:27:52 -0400 |
commit | ca809d25199b229b3da7d69f427eb67539dc7bc0 (patch) | |
tree | b28c55c464feb85c61f314a26487404fd63f4fb3 /include/sway/layers.h | |
parent | 9070950eecded7bfa64e7bca3bb76b150ccc8b72 (diff) | |
parent | 8d6bce02afc656bf792815ed68121f4e614cd175 (diff) |
Merge pull request #1642 from swaywm/layer-shell
Implement layer shell (rendering)
Diffstat (limited to 'include/sway/layers.h')
-rw-r--r-- | include/sway/layers.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/sway/layers.h b/include/sway/layers.h new file mode 100644 index 00000000..22054be1 --- /dev/null +++ b/include/sway/layers.h @@ -0,0 +1,27 @@ +#ifndef _SWAY_LAYERS_H +#define _SWAY_LAYERS_H +#include <stdbool.h> +#include <wlr/types/wlr_box.h> +#include <wlr/types/wlr_surface.h> +#include <wlr/types/wlr_layer_shell.h> + +struct sway_layer_surface { + struct wlr_layer_surface *layer_surface; + struct wl_list link; + + struct wl_listener destroy; + struct wl_listener map; + struct wl_listener unmap; + 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; +}; + +struct sway_output; +void arrange_layers(struct sway_output *output); + +#endif |