Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ivi-controller.c: Defer ID allocation to desktop_surface_configured #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gtristan
Copy link

As discussed with weston developers here:

https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1475

The ID allocation must happen in the the first emission of the desktop_surface_configured signal, not at surface creation time.

This is also incidentally reflected and affirmed by this slide deck:

https://wiki.automotivelinux.org/_media/agl-distro/agl_amm_xdg_support_a04.pdf

This fixes the IVI controller handling client applications, like GTK+ applications which will set the app-id and window title after triggering the underlying surface creation (by calling set_parent(nil)) but before triggering the desktop_surface_configured event (by calling wl_surface_commit()).

As discussed with weston developers here:

    https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1475

The ID allocation must happen in the the first emission of the
desktop_surface_configured signal, not at surface creation time.

This is also incidentally reflected and affirmed by this slide deck:

   https://wiki.automotivelinux.org/_media/agl-distro/agl_amm_xdg_support_a04.pdf

This fixes the IVI controller handling client applications, like GTK+
applications which will set the app-id and window title after triggering
the underlying surface creation (by calling set_parent(nil)) but before
triggering the desktop_surface_configured event (by calling wl_surface_commit()).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant