desktop-shell: Don't re-position views when output_list is empty

Signed-off-by: Harish Krupo <harishkrupo@gmail.com>
This commit is contained in:
Harish Krupo 2019-04-20 18:10:56 +05:30 committed by Daniel Stone
parent 137b811ecd
commit 2dff4dd695

View File

@ -4732,6 +4732,9 @@ shell_reposition_view_on_output_destroy(struct weston_view *view)
float x, y;
int visible;
if (wl_list_empty(&ec->output_list))
return;
x = view->geometry.x;
y = view->geometry.y;