discomfitor pushed a commit to branch master.

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

commit fc759b1f0c719024684b9ab18c9e0c2adeb01374
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Apr 20 12:38:08 2016 -0400

    more accurately reject wl selection setting based on whether serial is 
invalid
    
    copycopycopycopy
---
 src/bin/e_comp_wl_data.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 3913781..4841361 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -482,8 +482,10 @@ _e_comp_wl_data_device_selection_set(void *data 
EINA_UNUSED, E_Comp_Wl_Data_Sour
    struct wl_resource *offer_res, *data_device_res, *focus = NULL;
 
    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 (sel_source && ((sel_source->serial != serial) || (sel_source != 
source)))
+   if (sel_source)
      {
         if (sel_source->cancelled)
           sel_source->cancelled(sel_source);

-- 


Reply via email to