aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-05-31 18:21:49 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commita2c1cb9072b990de9181bffeb69e43f9b3030804 (patch)
tree1588d8d58a84c04fbc02f0e5701394a6ebf47de2 /include/sway
parentc9e3a313b440c171ae0bf78eb5b85bf63c3121b9 (diff)
Fix mpv damage issue when unfullscreening into floating
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/tree/view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 7362df5c..3df38e2d 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -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;