summaryrefslogtreecommitdiff
path: root/weston-ivi-shell/src/ivi-controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'weston-ivi-shell/src/ivi-controller.c')
-rw-r--r--weston-ivi-shell/src/ivi-controller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index c27966a..e6de020 100644
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -1429,14 +1429,14 @@ controller_screen_get(struct wl_client *client,
int32_t layer_count, i;
uint32_t id;
- lyt = iviscrn->shell->interface;
-
if (!iviscrn) {
ivi_wm_screen_send_error(resource, IVI_WM_SCREEN_ERROR_NO_SCREEN,
"the output is already destroyed");
return;
}
+ lyt = iviscrn->shell->interface;
+
if (param & IVI_WM_PARAM_RENDER_ORDER) {
lyt->get_layers_on_screen(iviscrn->output, &layer_count, &layer_list);