discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=84e9118c9f301f8e6658f125c17eccf0066f57d7

commit 84e9118c9f301f8e6658f125c17eccf0066f57d7
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Jul 7 16:26:32 2017 -0400

    don't reject internal wl selections based on serial value
---
 src/bin/e_comp_wl_data.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 6de53c748..d42edc2a9 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -487,7 +487,16 @@ _e_comp_wl_data_device_selection_set(void *data 
EINA_UNUSED, E_Comp_Wl_Data_Sour
 
    sel_source = (E_Comp_Wl_Data_Source *)e_comp_wl->selection.data_source;
    if (sel_source && (e_comp_wl->selection.serial - serial < UINT32_MAX / 2))
-     return;
+     {
+        if (!serial)
+          {
+             /* drm canvas will always have serial 0 */
+             pid_t pid;
+             
wl_client_get_credentials(wl_resource_get_client(source->resource), &pid, NULL, 
NULL);
+             if (pid != getpid()) return;
+          }
+        else return;
+     }
 
    if (sel_source)
      {

-- 


Reply via email to