From 2dff4dd6950f371dcb94553c5cc724f535ef4f12 Mon Sep 17 00:00:00 2001 From: Harish Krupo Date: Sat, 20 Apr 2019 18:10:56 +0530 Subject: [PATCH] desktop-shell: Don't re-position views when output_list is empty Signed-off-by: Harish Krupo --- desktop-shell/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 33fda6d0..187be799 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -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;