summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-22 06:52:57 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-22 07:00:18 -0400
commita6d9d3119e1a924b7c5ad3469fa7d9f73c67af58 (patch)
treef45cc2dcfef03f7d960d77c6585af890559d6ce5
parent7a551b13e67872459a892faf685bdd6cab3bc367 (diff)
downloadefl-a6d9d3119e1a924b7c5ad3469fa7d9f73c67af58.tar.gz
elm_cnp: use correct pointer when emitting ELM_CNP_EVENT_SELECTION_CHANGED
CID ???
-rw-r--r--src/lib/elementary/elm_cnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index 42ec69772b..e0c6344428 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -846,7 +846,7 @@ _x11_fixes_selection_notify(void *d EINA_UNUSED, int t EINA_UNUSED, void *event)
e->type = type;
e->seat_id = 1; /* under x11 this is always the default seat */
e->exists = !!ev->owner;
- ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, ev, NULL, NULL);
+ ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, e, NULL, NULL);
return ECORE_CALLBACK_RENEW;
}
@@ -3212,7 +3212,7 @@ _wl_selection_changed(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
/* connect again to add ref */
e->display = ecore_wl2_display_connect(ecore_wl2_display_name_get(ev->display));
e->exists = !!ecore_wl2_dnd_selection_get(seat);
- ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, ev, _wl_selection_changed_free, ev->display);
+ ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, e, _wl_selection_changed_free, ev->display);
return ECORE_CALLBACK_RENEW;
}