aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar/position.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-09-06 09:13:36 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-09-06 09:13:36 +1000
commitc6368febc8045ce884cc0047e89b980d6a81ce2f (patch)
treee2db4a2927bb81e3baf579d01a2bed4f1be62e62 /sway/commands/bar/position.c
parent49c937fc878da3ffb155429216ad8298202f1767 (diff)
Adjust container box
Prior to f5b9815128b6c000bb5d47c339480fa481a5e99d, children of tabbed and stacked containers would have their container size and position set to the same as the tabbed/stacked container. Normally this would be a problem for a layout such as T[V[view]], but there was some code in the arrange functions which would check if the grandparent of the view was a tabbed or stacked container and would offset the view's Y accordingly. Commit f5b9815128b6c000bb5d47c339480fa481a5e99d changed the box to exclude the titlebar for all tabbed/stacked children so that the grandparent check could be removed. But this meant the title was not covered in the container and wasn't damaged when the child changed its title. This patch changes it so that a child of a tabbed/stacked container will have its box include the title bar if the child is a view, but not if it's a layout container. This fixes the title damage issue while avoiding the grandparent check in the arrange functions, and matches what we see visually.
Diffstat (limited to 'sway/commands/bar/position.c')
0 files changed, 0 insertions, 0 deletions