aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/output/transform.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-03-29 12:15:17 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-31 17:49:05 -0600
commit0676ace97fdd0054af6b0a4950e219ebd0a18de4 (patch)
treeda38135b541ccf96f93c59f6a8d46c873f148b93 /sway/commands/output/transform.c
parentdd28e6a6d6abf06d2d16e6c91aeaf942bf225af7 (diff)
floating: fix size of non-view containers
This fixes the sizing of floating non-view containers. On master, the floater will get set to the maximum width and height, which by default is the entire output layout. When setting a non-view container to floating, this will set a sane default size of 50% of the workspace width and 75% of the workspace height, or whatever the closest is that the minimum and maximum floating width/height values allow for. On all future calls to `floating_natural_resize`, the width and height will be kept unless they need to be changed to respect the min/max floating width/height values.
Diffstat (limited to 'sway/commands/output/transform.c')
0 files changed, 0 insertions, 0 deletions