clients: Add a widget_get_wl_subsurface
Adds a simple accessor for the wl_subsurface for widgets created with window_add_subsurface.
This commit is contained in:
committed by
Kristian Høgsberg
parent
47b87d5ec0
commit
5e10a04481
@@ -1818,6 +1818,12 @@ widget_get_wl_surface(struct widget *widget)
|
|||||||
return widget->surface->surface;
|
return widget->surface->surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wl_subsurface *
|
||||||
|
widget_get_wl_subsurface(struct widget *widget)
|
||||||
|
{
|
||||||
|
return widget->surface->subsurface;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
widget_get_last_time(struct widget *widget)
|
widget_get_last_time(struct widget *widget)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -345,6 +345,9 @@ window_get_surface(struct window *window);
|
|||||||
struct wl_surface *
|
struct wl_surface *
|
||||||
window_get_wl_surface(struct window *window);
|
window_get_wl_surface(struct window *window);
|
||||||
|
|
||||||
|
struct wl_subsurface *
|
||||||
|
widget_get_wl_subsurface(struct widget *widget);
|
||||||
|
|
||||||
enum window_buffer_type {
|
enum window_buffer_type {
|
||||||
WINDOW_BUFFER_TYPE_EGL_WINDOW,
|
WINDOW_BUFFER_TYPE_EGL_WINDOW,
|
||||||
WINDOW_BUFFER_TYPE_SHM,
|
WINDOW_BUFFER_TYPE_SHM,
|
||||||
|
|||||||
Reference in New Issue
Block a user