summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl/efl_wl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl_wl/efl_wl.c')
-rw-r--r--src/lib/efl_wl/efl_wl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index d872a4a426..4b1afa64ec 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -5909,6 +5909,18 @@ extracted_changed(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event
5909 shell_surface_send_configure(data); 5909 shell_surface_send_configure(data);
5910} 5910}
5911 5911
5912int32_t
5913efl_wl_surface_pid_get(Evas_Object *surface)
5914{
5915 Comp_Surface *cs;
5916 int32_t pid;
5917 if (!eina_streq(evas_object_type_get(surface), "comp_surface")) abort();
5918 cs = evas_object_smart_data_get(surface);
5919 EINA_SAFETY_ON_TRUE_RETURN_VAL(cs->dead, -1);
5920 wl_client_get_credentials(wl_resource_get_client(cs->res), &pid, NULL, NULL);
5921 return pid;
5922}
5923
5912Eina_Bool 5924Eina_Bool
5913efl_wl_surface_extract(Evas_Object *surface) 5925efl_wl_surface_extract(Evas_Object *surface)
5914{ 5926{