From 679c058fac986314675bacf7a7b01d263fb0db39 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Fri, 29 Mar 2019 12:26:08 -0400 Subject: 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. --- include/sway/tree/container.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sway/tree/container.h') 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, void container_floating_resize_and_center(struct sway_container *con); +void container_floating_set_default_size(struct sway_container *con); + void container_set_floating(struct sway_container *container, bool enable); void container_set_geometry_from_content(struct sway_container *con); -- cgit v1.2.3