aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-19 23:11:37 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-27 18:50:09 -0400
commit4bf936360d42fb5b96a44fd17028ae66fc462362 (patch)
treeec014a3754015e1638f583b8668cafb8c02e22b6 /include/rootston
parentfcf8c6c8a29e3ce0a17bcf7ce1ca92fed8493502 (diff)
downloadwlroots-4bf936360d42fb5b96a44fd17028ae66fc462362.tar.xz
Arrange & render layer surfaces
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/desktop.h2
-rw-r--r--include/rootston/layers.h3
-rw-r--r--include/rootston/output.h3
3 files changed, 6 insertions, 2 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h
index ad7654a1..92cc6d9d 100644
--- a/include/rootston/desktop.h
+++ b/include/rootston/desktop.h
@@ -29,8 +29,6 @@
struct roots_desktop {
struct wl_list views; // roots_view::link
- struct wl_list layers[4]; // layer_surface::link
-
struct wl_list outputs; // roots_output::link
struct timespec last_frame;
diff --git a/include/rootston/layers.h b/include/rootston/layers.h
index 269056ea..f432d53d 100644
--- a/include/rootston/layers.h
+++ b/include/rootston/layers.h
@@ -14,6 +14,9 @@ struct roots_layer_surface {
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener surface_commit;
+
+ bool configured;
+ struct wlr_box geo;
};
#endif
diff --git a/include/rootston/output.h b/include/rootston/output.h
index a852a204..5545d76a 100644
--- a/include/rootston/output.h
+++ b/include/rootston/output.h
@@ -14,6 +14,7 @@ struct roots_output {
struct wl_list link; // roots_desktop:outputs
struct roots_view *fullscreen_view;
+ struct wl_list layers[4]; // layer_surface::link
struct timespec last_frame;
struct wlr_output_damage *damage;
@@ -35,5 +36,7 @@ void output_damage_from_view(struct roots_output *output,
struct roots_view *view);
void output_damage_whole_drag_icon(struct roots_output *output,
struct roots_drag_icon *icon);
+void output_damage_whole_surface(struct wlr_surface *surface,
+ double lx, double ly, float rotation, void *data);
#endif