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.
This commit is contained in:
Brian Ashworth 2019-03-29 12:26:08 -04:00 committed by Drew DeVault
parent 0676ace97f
commit 679c058fac
3 changed files with 16 additions and 3 deletions

View file

@ -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);