mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
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:
parent
0676ace97f
commit
679c058fac
3 changed files with 16 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue