diff options
Diffstat (limited to 'src/desktop.c')
-rw-r--r-- | src/desktop.c | 16 |
1 files changed, 16 insertions, 0 deletions
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) { |