swayfx/sway/tree
Ryan Dwyer c6368febc8 Adjust container box
Prior to f5b9815128, 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 f5b9815128 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.
2018-09-06 09:13:36 +10:00
..
arrange.c Adjust container box 2018-09-06 09:13:36 +10:00
container.c Allow marked containers to be moved out of the scratchpad via move command 2018-09-05 18:01:43 +10:00
node.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
output.c Call wlr_output_enable on enable/disable if needed 2018-09-05 14:00:00 -04:00
root.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
view.c Adjust container box 2018-09-06 09:13:36 +10:00
workspace.c Don't use wlr_output properties 2018-09-05 18:01:43 +10:00