diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-21 12:13:00 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-22 23:10:19 +1000 |
commit | 011d1ebfa4219eb666487529a5a5e7189c14fd40 (patch) | |
tree | 4dd3efa39573b7baa9e3965ed3b03799af849c54 /include | |
parent | Store last button and use it when views request to move or resize (diff) | |
download | sway-011d1ebfa4219eb666487529a5a5e7189c14fd40.tar.gz sway-011d1ebfa4219eb666487529a5a5e7189c14fd40.tar.zst sway-011d1ebfa4219eb666487529a5a5e7189c14fd40.zip |
Consider view's min/max sizes when resizing
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 068d92c6..1dfb218b 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -26,6 +26,8 @@ enum sway_view_prop { | |||
26 | }; | 26 | }; |
27 | 27 | ||
28 | struct sway_view_impl { | 28 | struct sway_view_impl { |
29 | void (*get_constraints)(struct sway_view *view, double *min_width, | ||
30 | double *max_width, double *min_height, double *max_height); | ||
29 | const char *(*get_string_prop)(struct sway_view *view, | 31 | const char *(*get_string_prop)(struct sway_view *view, |
30 | enum sway_view_prop prop); | 32 | enum sway_view_prop prop); |
31 | uint32_t (*get_int_prop)(struct sway_view *view, enum sway_view_prop prop); | 33 | uint32_t (*get_int_prop)(struct sway_view *view, enum sway_view_prop prop); |
@@ -215,6 +217,9 @@ uint32_t view_get_window_type(struct sway_view *view); | |||
215 | 217 | ||
216 | const char *view_get_shell(struct sway_view *view); | 218 | const char *view_get_shell(struct sway_view *view); |
217 | 219 | ||
220 | void view_get_constraints(struct sway_view *view, double *min_width, | ||
221 | double *max_width, double *min_height, double *max_height); | ||
222 | |||
218 | uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, | 223 | uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, |
219 | int height); | 224 | int height); |
220 | 225 | ||