summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2024-03-28 11:46:19 +0200
committerMarius Vlad <marius.vlad@collabora.com>2024-03-28 14:38:30 +0200
commitaa3e4ed07459535d27a5ef403e86d02cf91686c4 (patch)
tree8a04ac8bf0a5fd870c94c840cbde9c581b55078a
parent7150295bce5771772c579b3807b0f1f51fd18de4 (diff)
layout: Fix panel initialization with no weston surface
Bug-AGL: SPEC-5096, SPEC-5061 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I1bebf20b0845a571bebed89d5526fa8e6cb25b4b
-rw-r--r--src/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout.c b/src/layout.c
index 2e9173a..48c478e 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -175,8 +175,7 @@ ivi_panel_init(struct ivi_compositor *ivi, struct ivi_output *output,
struct weston_view *view;
struct weston_geometry geom;
struct weston_coord_global pos = woutput->pos;
- struct weston_surface *wsurface =
- weston_desktop_surface_get_surface(panel->dsurface);
+ struct weston_surface *wsurface;
if (!panel)
return;
@@ -185,6 +184,7 @@ ivi_panel_init(struct ivi_compositor *ivi, struct ivi_output *output,
dsurface = panel->dsurface;
view = panel->view;
geom = weston_desktop_surface_get_geometry(dsurface);
+ wsurface = weston_desktop_surface_get_surface(panel->dsurface);
weston_log("(panel) geom.width %d, geom.height %d, geom.x %d, geom.y %d\n",
geom.width, geom.height, geom.x, geom.y);