Wrap xdg in IVI shell

Pekka Paalanen ppaalanen at gmail.com
Wed Feb 21 09:27:49 UTC 2018


On Wed, 21 Feb 2018 04:30:19 +0000
Stuvart S <lovelinuxdeeply at gmail.com> wrote:

> Hi team,
> 
> I wrote a user app which is capable of displaying a surface. It works
> perfectly on xdg shell ,but when switching to ivi shell it doesn,t. I could
> know that there are differences in protocols,thats why it happens and there
> is one way that we can wrap xdg in ivi shell.But I am not aware of doing
> that.
> 
> Following are the code snipet that works for me in xdg..(tested in
> raspberry pi )
> Does anybody have any clue ? Any help is appreciated..
> Thanks in advance.
> 
> 
> #include <stdio.h>
> #include <string.h>
> 
> #include <syscall.h>
> #include <unistd.h>
> #include <sys/mman.h>
> 
> #include <wayland-client.h>
> #include <wayland-client-core.h>
> 
> 
> struct wl_compositor *compositor;
> struct wl_shm *shm;
> struct wl_shell *shell;
> 
> void registry_global_handler
> (
>     void *data,
>     struct wl_registry *registry,
>     uint32_t name,
>     const char *interface,
>     uint32_t version
> ) {
>     if (strcmp(interface, "wl_compositor") == 0) {
>         compositor = wl_registry_bind(registry, name,
>             &wl_compositor_interface, 3);
>     } else if (strcmp(interface, "wl_shm") == 0) {
>         shm = wl_registry_bind(registry, name,
>             &wl_shm_interface, 1);
>     } else if (strcmp(interface, "wl_shell") == 0) {
>         shell = wl_registry_bind(registry, name,
>             &wl_shell_interface, 1);
>     }
> }

Hi,

this is not an xdg-shell application. You are using wl_shell
extension instead.

You may want to use ivi_application instead of either xdg_shell or
wl_shell. Weston's clients/simple-shm.c supports both ivi_application
and zxdg_shell_v6, for example.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180221/8c0d6baa/attachment.sig>


More information about the wayland-devel mailing list