aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-02 02:29:28 -0500
committerLibravatar emersion <contact@emersion.fr>2019-03-02 09:10:26 +0100
commit430359519c1cb9583020fc8da04f5ecc31b0e914 (patch)
treea2b8287babeb96e63953de8d4bb68bc422029fe9 /sway/sway.5.scd
parentMinor fix of code duplication. (diff)
downloadsway-430359519c1cb9583020fc8da04f5ecc31b0e914.tar.gz
sway-430359519c1cb9583020fc8da04f5ecc31b0e914.tar.zst
sway-430359519c1cb9583020fc8da04f5ecc31b0e914.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/sway.5.scd')
-rw-r--r--sway/sway.5.scd3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 8f8b7e3d..4f4522fb 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -430,7 +430,8 @@ The default colors are:
430 430
431*floating_maximum_size* <width> x <height> 431*floating_maximum_size* <width> x <height>
432 Specifies the maximum size of floating windows. -1 x -1 removes the upper 432 Specifies the maximum size of floating windows. -1 x -1 removes the upper
433 limit. 433 limit. The default is 0 x 0, which will use the width and height of the
434 entire output layout as the maximums
434 435
435*floating_minimum_size* <width> x <height> 436*floating_minimum_size* <width> x <height>
436 Specifies the minimum size of floating windows. The default is 75 x 50. 437 Specifies the minimum size of floating windows. The default is 75 x 50.