GNOME Bugzilla – Bug 699415
Store and allow access to wayland global interfaces
Last modified: 2013-05-01 20:13:09 UTC
Apps should be able to bind to custom wayland interfaces (i.e. a test extension). Wayland only acknowledges/invokes one registry listener per display connection. Thus, the global interfaces should be cached internally (name, version, id) when they are handled and be API accessible to allow apps to bind them.
I think it would make sense for GTK+ to provide access to known globals and emit a signal on GdkDisplay when new globals are announced or existing once are removed. However, wayland currently does allow for multiple wl_registry proxies in the client. Get the wl_display from GdkDisplay and call wl_display_get_registry() to create a new registry listener.
(In reply to comment #1) > I think it would make sense for GTK+ to provide access to known globals and > emit a signal on GdkDisplay when new globals are announced or existing once are > removed. > > However, wayland currently does allow for multiple wl_registry proxies in the > client. Get the wl_display from GdkDisplay and call wl_display_get_registry() > to create a new registry listener. Hmmm... I tried multiple wl_registry proxies before and I coulda sworn it didn't work. But, I tried again and voila, it worked! Ugh. Silly me.