diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-02 02:29:28 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-02 09:10:26 +0100 |
commit | 430359519c1cb9583020fc8da04f5ecc31b0e914 (patch) | |
tree | a2b8287babeb96e63953de8d4bb68bc422029fe9 /sway/commands/bar/gaps.c | |
parent | 37f0e1f1a2cc8e072c8e01e0769c62c536b8295b (diff) |
floating_maximum_size: change default behavior
This changes the way zero (which is the default) is interpreted for both
the width and height of `floating_maximum_size`. It now refers to the
width and height of the entire output layout, which matches i3's
behavior.
This also removes duplicated code to calculate the floating constraints
in three files. Before this, `container_init_floating` used two-thirds
of the workspace width/height as the max and the entire workspace
width/height was used everywhere else. Now, all callers use a single
function `floating_calculate_constraints`.
Diffstat (limited to 'sway/commands/bar/gaps.c')
0 files changed, 0 insertions, 0 deletions