aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/view.h
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-20 06:25:00 -0500
committerGitHub <noreply@github.com>2017-11-20 06:25:00 -0500
commit083fe4506b9a57353fdee36ad05252742cc6429f (patch)
tree0fca8bfca5123cc60ce99e2cf3d6746a5cc7f20c /include/rootston/view.h
parente0bdc16a10449d3bdf4517b5a85a9d55085d97c7 (diff)
parent0191f3f711b642aa496204e770eaa0dc1914f26d (diff)
Merge pull request #427 from emersion/seat-views
rootston: add per-seat views
Diffstat (limited to 'include/rootston/view.h')
-rw-r--r--include/rootston/view.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h
index 99b4ed78..69034d60 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -9,7 +9,6 @@
struct roots_wl_shell_surface {
struct roots_view *view;
- // TODO: Maybe destroy listener should go in roots_view
struct wl_listener destroy;
struct wl_listener request_move;
struct wl_listener request_resize;
@@ -22,7 +21,6 @@ struct roots_wl_shell_surface {
struct roots_xdg_surface_v6 {
struct roots_view *view;
- // TODO: Maybe destroy listener should go in roots_view
struct wl_listener commit;
struct wl_listener destroy;
struct wl_listener request_move;
@@ -33,7 +31,6 @@ struct roots_xdg_surface_v6 {
struct roots_xwayland_surface {
struct roots_view *view;
- // TODO: Maybe destroy listener should go in roots_view
struct wl_listener destroy;
struct wl_listener request_configure;
struct wl_listener request_move;
@@ -51,6 +48,7 @@ enum roots_view_type {
struct roots_view {
struct roots_desktop *desktop;
+ struct wl_list link; // roots_desktop::views
double x, y;
float rotation;
@@ -80,6 +78,10 @@ struct roots_view {
};
struct wlr_surface *wlr_surface;
+ struct {
+ struct wl_signal destroy;
+ } events;
+
// TODO: This would probably be better as a field that's updated on a
// configure event from the xdg_shell
// If not then this should follow the typical type/impl pattern we use