forked from enlightenment/efl
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
This commit is contained in:
parent
99ab88c1c7
commit
551074c5f2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue