shell: Throttle the log message
[src/agl-compositor.git] / src / layout.c
index dd7e75f..0345807 100644 (file)
@@ -241,6 +241,9 @@ ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi)
 {
        struct ivi_output *out;
 
+       if (!app_id)
+               return NULL;
+
        wl_list_for_each(out, &ivi->outputs, link) {
                if (!out->app_id)
                        continue;
@@ -824,6 +827,7 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id)
 
                                weston_layer_entry_remove(&view->layer_link);
                                weston_output_damage(ivi_output->output);
+                               ivi_output->active = NULL;
                        }
                } else {
                        struct weston_desktop_surface *dsurface;