aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-24 08:28:39 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-24 08:30:05 -0400
commitaae4d21b633d4cfe6839c1685fbebf59e199b60d (patch)
treef19376abfe20adb46a13940daa109cbb00c29b9b /src/lib/ecore_wl2/ecore_wl2_input.c
parentRevert "ecore wl2 - dnd - handle NULL drags... shouldnt happen but does" (diff)
downloadefl-aae4d21b633d4cfe6839c1685fbebf59e199b60d.tar.gz
ecore-wl2: handle null offer drags more effectively
this is valid and refers to an offer with no types; a leave event with no enter is a protocol error, however fix https://phab.enlightenment.org/T5770 @fix
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 43d09ccc2e..da6fe7cd59 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -1691,8 +1691,8 @@ _ecore_wl2_input_del(Ecore_Wl2_Input *input)
wl_data_source_destroy(input->data.selection.source);
if (input->data.drag.source)
wl_data_source_destroy(input->data.drag.source);
- if (input->drag) _ecore_wl2_offer_unref(input->drag);
- if (input->selection) _ecore_wl2_offer_unref(input->selection);
+ if (input->drag.offer) _ecore_wl2_offer_unref(input->drag.offer);
+ if (input->selection.offer) _ecore_wl2_offer_unref(input->selection.offer);
if (input->data.device) wl_data_device_destroy(input->data.device);
if (input->xkb.state) xkb_state_unref(input->xkb.state);