diff options
Diffstat (limited to 'include/sway/container.h')
-rw-r--r-- | include/sway/container.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index b15e0428..9a5e312b 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #include <stdint.h> | 3 | #include <stdint.h> |
4 | #include <sys/types.h> | 4 | #include <sys/types.h> |
5 | #include <wlr/types/wlr_box.h> | 5 | #include <wlr/types/wlr_box.h> |
6 | #include <wlr/types/wlr_surface.h> | ||
6 | #include "list.h" | 7 | #include "list.h" |
7 | 8 | ||
8 | typedef struct sway_container swayc_t; | 9 | typedef struct sway_container swayc_t; |
@@ -123,6 +124,10 @@ struct sway_container { | |||
123 | * Marks applied to the container, list_t of char*. | 124 | * Marks applied to the container, list_t of char*. |
124 | */ | 125 | */ |
125 | list_t *marks; | 126 | list_t *marks; |
127 | |||
128 | struct { | ||
129 | struct wl_signal destroy; | ||
130 | } events; | ||
126 | }; | 131 | }; |
127 | 132 | ||
128 | void swayc_descendants_of_type(swayc_t *root, enum swayc_types type, | 133 | void swayc_descendants_of_type(swayc_t *root, enum swayc_types type, |
@@ -137,4 +142,7 @@ swayc_t *destroy_view(swayc_t *view); | |||
137 | 142 | ||
138 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); | 143 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); |
139 | 144 | ||
145 | swayc_t *swayc_at(swayc_t *parent, double lx, double ly, | ||
146 | struct wlr_surface **surface, double *sx, double *sy); | ||
147 | |||
140 | #endif | 148 | #endif |