mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
client: Make wl_proxy_set_queue() with NULL revert to default queue
This will be useful in order to implement the EGL_WL_create_wayland_buffer_from_image extension. The buffers created within Mesa's Wayland platform are created using the the wl_drm object as a proxy factory which means they will be set to use Mesa's internal event queue. However, these buffers will be owned by the client application so they ideally need to use the default event loop. This function provides a way to set the proxy's event queue back to the default. krh: Edited from Neils original patch to just use wl_proxy_set_queue() with a NULL argument instead of introducing a new function.
This commit is contained in:
parent
3b3e81f42e
commit
1521c62a31
1 changed files with 4 additions and 1 deletions
|
|
@ -1572,7 +1572,10 @@ wl_proxy_get_class(struct wl_proxy *proxy)
|
|||
WL_EXPORT void
|
||||
wl_proxy_set_queue(struct wl_proxy *proxy, struct wl_event_queue *queue)
|
||||
{
|
||||
proxy->queue = queue;
|
||||
if (queue)
|
||||
proxy->queue = queue;
|
||||
else
|
||||
proxy->queue = &proxy->display->queue;
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue