aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/output.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-02 02:29:28 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-04 12:50:47 -0500
commita3b9f2dcfa649d9141f7bbb39e5eb951560eef72 (patch)
treefe8e29aed212a23fbdb66237170f5e4b4d79c139 /sway/config/output.c
parentMinor fix of code duplication. (diff)
downloadsway-a3b9f2dcfa649d9141f7bbb39e5eb951560eef72.tar.gz
sway-a3b9f2dcfa649d9141f7bbb39e5eb951560eef72.tar.zst
sway-a3b9f2dcfa649d9141f7bbb39e5eb951560eef72.zip
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/config/output.c')
0 files changed, 0 insertions, 0 deletions