X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdesktop.c;h=0186e9fcb78b933fd52383d4a56a9a2b84fa3b48;hb=26700fa20abefccb77bb586b49b1629bf102e131;hp=9f472c08506f1f42281bc7658246deb8929f5c73;hpb=8033c46081b93f19843d140e58b527af7abf7a4f;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index 9f472c0..0186e9f 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -582,6 +582,22 @@ transform_handler(struct wl_listener *listener, void *data) api->send_position(surface, x, y); } +bool +is_shell_surface_xwayland(struct ivi_surface *surf) +{ + const struct weston_xwayland_surface_api *api; + struct ivi_compositor *ivi = surf->ivi; + struct weston_surface *surface; + + api = ivi->xwayland_surface_api; + + if (!api) + return false; + + surface = weston_desktop_surface_get_surface(surf->dsurface); + return api->is_xwayland_surface(surface); +} + int ivi_desktop_init(struct ivi_compositor *ivi) {