Fix mpv damage issue when unfullscreening into floating

This commit is contained in:
Ryan Dwyer 2018-05-31 18:21:49 +10:00
parent c9e3a313b4
commit a2c1cb9072
2 changed files with 12 additions and 4 deletions

View file

@ -51,6 +51,9 @@ struct sway_view {
double x, y;
int width, height;
double saved_x, saved_y;
int saved_width, saved_height;
// The size the view would want to be if it weren't tiled.
// Used when changing a view from tiled to floating.
int natural_width, natural_height;