Layout containers with fullscreen child correctly

When a container that includes a child that's fullscreen gets
re-arranged also adjust the saved width/height of the fullscreen window
so that on fullscreen exit the layout is correct.

Fixes #3547
This commit is contained in:
Pedro Côrte-Real 2019-06-27 19:00:38 +01:00
parent e1a6c5ee06
commit 89ce6a80f1
3 changed files with 29 additions and 8 deletions

View file

@ -87,6 +87,7 @@ struct sway_container {
double width, height;
double saved_x, saved_y;
double saved_width, saved_height;
bool saved_dims;
// These are in layout coordinates.
double content_x, content_y;