summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2015-06-09 17:06:45 +0900
committerThiep Ha <thiepha@gmail.com>2015-06-09 18:17:00 +0900
commit3a0868d43aa283c7064a731b6e06649147719815 (patch)
tree784d5975cd211bdc2acaff6b08c126007ee0012a
parent9b0c1f0062fff2d4f28834390d0a23d45558fac7 (diff)
downloadelementary-3a0868d43aa283c7064a731b6e06649147719815.tar.gz
Cnp/X11: correct object parameter in datacb
The object parameter in datacb must be the selection request object, not the selection owner object. This patch corrects that. Test case: open two windows with entry, copy text from one entry in first window, paste to entry in other window. @fix
-rw-r--r--src/lib/elm_cnp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 5adf1cd13..20c995699 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -982,7 +982,7 @@ _x11_notify_handler_text(X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify
ddata.data = data->data;
ddata.len = data->length;
ddata.action = sel->action;
- sel->datacb(sel->udata, sel->widget, &ddata);
+ sel->datacb(sel->udata, sel->requestwidget, &ddata);
}
else cnp_debug("Paste request\n");
@@ -1210,7 +1210,7 @@ _x11_vcard_receive(X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notif
ddata.data = data->data;
ddata.len = data->length;
ddata.action = sel->action;
- sel->datacb(sel->udata, sel->widget, &ddata);
+ sel->datacb(sel->udata, sel->requestwidget, &ddata);
}
else cnp_debug("Paste request\n");
return 0;
@@ -1272,7 +1272,7 @@ _x11_notify_handler_image(X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify
ddata.data = data->data;
ddata.len = data->length;
ddata.action = sel->action;
- sel->datacb(sel->udata, sel->widget, &ddata);
+ sel->datacb(sel->udata, sel->requestwidget, &ddata);
}
else cnp_debug("Paste request\n");
return 0;