aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-05-28 17:42:56 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commitf24087d1045bbee8642ee0703f6513ae605f2c47 (patch)
treeec19e5790946625c8be7ab20ebd32c9a4bf8273d
parent97672295ed50d1d6272876c4a3b6b5607cab05c6 (diff)
Fix fullscreen position
-rw-r--r--sway/tree/view.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 6e589611..2eaa5d49 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -554,13 +554,12 @@ void view_update_position(struct sway_view *view, double lx, double ly) {
if (view->x == lx && view->y == ly) {
return;
}
- if (!container_is_floating(view->swayc)) {
- return;
- }
container_damage_whole(view->swayc);
view->x = lx;
view->y = ly;
- container_set_geometry_from_floating_view(view->swayc);
+ if (container_is_floating(view->swayc)) {
+ container_set_geometry_from_floating_view(view->swayc);
+ }
container_damage_whole(view->swayc);
}