diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-29 12:26:08 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-31 17:49:05 -0600 |
commit | 679c058fac986314675bacf7a7b01d263fb0db39 (patch) | |
tree | 1d5ade6a8e4304f18fe6ac5943e3ac6aa68f4136 /include/sway | |
parent | floating: fix size of non-view containers (diff) | |
download | sway-679c058fac986314675bacf7a7b01d263fb0db39.tar.gz sway-679c058fac986314675bacf7a7b01d263fb0db39.tar.zst sway-679c058fac986314675bacf7a7b01d263fb0db39.zip |
scratchpad: set initial size
This matches i3's behavior of setting scratchpad containers to 50% of
the workspace's width and 75% of the workspace's height, bound by the
minimum and maximum floating width/height.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/tree/container.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 964061db..8448d705 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -217,6 +217,8 @@ void floating_calculate_constraints(int *min_width, int *max_width, | |||
217 | 217 | ||
218 | void container_floating_resize_and_center(struct sway_container *con); | 218 | void container_floating_resize_and_center(struct sway_container *con); |
219 | 219 | ||
220 | void container_floating_set_default_size(struct sway_container *con); | ||
221 | |||
220 | void container_set_floating(struct sway_container *container, bool enable); | 222 | void container_set_floating(struct sway_container *container, bool enable); |
221 | 223 | ||
222 | void container_set_geometry_from_content(struct sway_container *con); | 224 | void container_set_geometry_from_content(struct sway_container *con); |