aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/view.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 14:35:31 +0100
committeremersion <contact@emersion.fr>2017-11-20 14:35:31 +0100
commit1d08d317096a80f96d03cd67303381bdedaaac2a (patch)
tree0c2115f562fe6b5f6a609b561a05dbb9dddda10c /include/rootston/view.h
parent272e0858e49bf341b363fdbe59a5f669ba678ce2 (diff)
parentc3e0fbdb8f0cb16d99e70d14bb5cef6bd48d4591 (diff)
Merge branch 'master' into laggy-move-resize
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 66fc88bc..0f13b2d6 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;
@@ -35,7 +33,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;
@@ -55,6 +52,7 @@ enum roots_view_type {
struct roots_view {
struct roots_desktop *desktop;
+ struct wl_list link; // roots_desktop::views
double x, y;
float rotation;
@@ -90,6 +88,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