more accurately reject wl selection setting based on whether serial is invalid

copycopycopycopy
This commit is contained in:
Mike Blumenkrantz 2016-04-20 12:38:08 -04:00
parent cce8ce6401
commit 13f8b1f158
1 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,8 @@ _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)
{