e_compositor: Add e_surface_input_region_get
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 22 Aug 2024 02:57:28 +0000 (11:57 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 29 Aug 2024 06:50:57 +0000 (15:50 +0900)
src/bin/server/e_compositor.c
src/bin/server/e_compositor_intern.h

index e9290c75850b089e6258e0afd40b4cb932720e7e..2afe346ccbf9dd2c28628125db36b4d7321c4f99 100644 (file)
@@ -657,6 +657,15 @@ e_surface_opaque_region_get(E_Surface *surface)
    return &surface->ds_surface->current.opaque;
 }
 
+EINTERN pixman_region32_t *
+e_surface_input_region_get(E_Surface *surface)
+{
+   if (!surface->ds_surface)
+     return NULL;
+
+   return &surface->ds_surface->current.input;
+}
+
 EINTERN E_Subsurface *
 e_subsurface_try_from_surface(E_Surface *surface)
 {
index dbfe73d490b5b092817976714f55bdbfa572df1a..582a112d8bc8c7e386d382641a0b8c74a7797195 100644 (file)
@@ -50,6 +50,7 @@ Eina_Bool e_surface_damage_empty(E_Surface *surface);
 pixman_region32_t *e_surface_buffer_damage_get(E_Surface *surface);
 pixman_region32_t *e_surface_surface_damage_get(E_Surface *surface);
 pixman_region32_t *e_surface_opaque_region_get(E_Surface *surface);
+pixman_region32_t *e_surface_input_region_get(E_Surface *surface);
 
 E_Subsurface *e_subsurface_create(struct wl_resource *factory_resource, uint32_t id, E_Surface *surface, E_Surface *parent);
 E_Subsurface *e_subsurface_from_resource(struct wl_resource *resource);