X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Flayout.c;h=8879862ef03bc12e9b79fbeb7ef6869be1d996f9;hb=refs%2Fheads%2Fsandbox%2Fmvlad%2Fadd-missing-hooks;hp=c078ac930860156ca0e392cdccd0b648eb79ad0c;hpb=51be2ca7b38cacb368a9b49423dae7e3c84a4b98;p=src%2Fagl-compositor.git diff --git a/src/layout.c b/src/layout.c index c078ac9..8879862 100644 --- a/src/layout.c +++ b/src/layout.c @@ -366,6 +366,7 @@ void ivi_layout_fullscreen_committed(struct ivi_surface *surface) { struct ivi_compositor *ivi = surface->ivi; + struct ivi_policy *policy = ivi->policy; struct weston_desktop_surface *dsurface = surface->dsurface; struct weston_surface *wsurface = @@ -377,6 +378,10 @@ ivi_layout_fullscreen_committed(struct ivi_surface *surface) struct weston_view *view = surface->view; struct weston_geometry geom; + if (policy && policy->api.surface_activate_by_default && + !policy->api.surface_activate_by_default(surface, surface->ivi)) + return; + if (surface->view->is_mapped) return; @@ -423,6 +428,7 @@ void ivi_layout_split_committed(struct ivi_surface *surface) { struct ivi_compositor *ivi = surface->ivi; + struct ivi_policy *policy = ivi->policy; struct weston_desktop_surface *dsurface = surface->dsurface; struct weston_surface *wsurface = @@ -440,6 +446,10 @@ ivi_layout_split_committed(struct ivi_surface *surface) x = woutput->x; y = woutput->y; + if (policy && policy->api.surface_activate_by_default && + !policy->api.surface_activate_by_default(surface, surface->ivi)) + return; + if (surface->view->is_mapped) return; @@ -508,6 +518,7 @@ void ivi_layout_popup_committed(struct ivi_surface *surface) { struct ivi_compositor *ivi = surface->ivi; + struct ivi_policy *policy = ivi->policy; struct weston_desktop_surface *dsurface = surface->dsurface; struct weston_surface *wsurface = @@ -518,6 +529,10 @@ ivi_layout_popup_committed(struct ivi_surface *surface) struct weston_view *view = surface->view; + if (policy && policy->api.surface_activate_by_default && + !policy->api.surface_activate_by_default(surface, surface->ivi)) + return; + if (surface->view->is_mapped) return;