diff options
-rw-r--r-- | sway/tree/view.c | 7 |
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) { | |||
554 | if (view->x == lx && view->y == ly) { | 554 | if (view->x == lx && view->y == ly) { |
555 | return; | 555 | return; |
556 | } | 556 | } |
557 | if (!container_is_floating(view->swayc)) { | ||
558 | return; | ||
559 | } | ||
560 | container_damage_whole(view->swayc); | 557 | container_damage_whole(view->swayc); |
561 | view->x = lx; | 558 | view->x = lx; |
562 | view->y = ly; | 559 | view->y = ly; |
563 | container_set_geometry_from_floating_view(view->swayc); | 560 | if (container_is_floating(view->swayc)) { |
561 | container_set_geometry_from_floating_view(view->swayc); | ||
562 | } | ||
564 | container_damage_whole(view->swayc); | 563 | container_damage_whole(view->swayc); |
565 | } | 564 | } |
566 | 565 | ||