X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Flayout.c;fp=src%2Flayout.c;h=48c478e9b0e904a94eeb7e13eddb6c310fbb44a7;hb=7ec377fb843d18ac29cd756b5833d94185706602;hp=2e9173ae1f35f0545f6f801d9f84a350eb347edf;hpb=8280cd49161c8f47412ac7cc427ae04b0a1867d2;p=src%2Fagl-compositor.git 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);