diff options
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r-- | include/sway/tree/container.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index ec9e2385..493c70e2 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -11,6 +11,12 @@ extern struct sway_container root_container; | |||
11 | struct sway_view; | 11 | struct sway_view; |
12 | struct sway_seat; | 12 | struct sway_seat; |
13 | 13 | ||
14 | #define TITLEBAR_BORDER_THICKNESS 1 | ||
15 | |||
16 | // Padding includes titlebar border | ||
17 | #define TITLEBAR_H_PADDING 3 | ||
18 | #define TITLEBAR_V_PADDING 4 | ||
19 | |||
14 | /** | 20 | /** |
15 | * Different kinds of containers. | 21 | * Different kinds of containers. |
16 | * | 22 | * |
@@ -98,6 +104,8 @@ struct sway_container { | |||
98 | // Passed the previous parent | 104 | // Passed the previous parent |
99 | struct wl_signal reparent; | 105 | struct wl_signal reparent; |
100 | } events; | 106 | } events; |
107 | |||
108 | struct wl_listener reparent; | ||
101 | }; | 109 | }; |
102 | 110 | ||
103 | struct sway_container *container_create(enum sway_container_type type); | 111 | struct sway_container *container_create(enum sway_container_type type); |
@@ -160,7 +168,7 @@ struct sway_container *container_parent(struct sway_container *container, | |||
160 | * is a view and the view contains a surface at those coordinates. | 168 | * is a view and the view contains a surface at those coordinates. |
161 | */ | 169 | */ |
162 | struct sway_container *container_at(struct sway_container *container, | 170 | struct sway_container *container_at(struct sway_container *container, |
163 | double lx, double ly, struct wlr_surface **surface, | 171 | double ox, double oy, struct wlr_surface **surface, |
164 | double *sx, double *sy); | 172 | double *sx, double *sy); |
165 | 173 | ||
166 | /** | 174 | /** |
@@ -210,4 +218,9 @@ void container_calculate_title_height(struct sway_container *container); | |||
210 | 218 | ||
211 | void container_notify_child_title_changed(struct sway_container *container); | 219 | void container_notify_child_title_changed(struct sway_container *container); |
212 | 220 | ||
221 | /** | ||
222 | * Return the height of a regular title bar. | ||
223 | */ | ||
224 | size_t container_titlebar_height(void); | ||
225 | |||
213 | #endif | 226 | #endif |