Revert change, premature.

SVN revision: 27515
This commit is contained in:
Sebastian Dransfeld 2006-12-19 06:51:51 +00:00
parent bf9059d260
commit 368d44ce5d
2 changed files with 3 additions and 12 deletions

View File

@ -543,7 +543,7 @@ struct _Ecore_X_Event_Selection_Request
Ecore_X_Window requestor;
Ecore_X_Time time;
Ecore_X_Atom selection;
char *target;
Ecore_X_Atom target;
Ecore_X_Atom property;
};

View File

@ -166,15 +166,6 @@ _ecore_x_event_free_xdnd_enter(void *data __UNUSED__, void *ev)
free(e);
}
static void
_ecore_x_event_free_selection_request(void *data __UNUSED__, void *ev)
{
Ecore_X_Event_Selection_Request *e;
XFree(e->target);
free(e);
}
static void
_ecore_x_event_free_selection_notify(void *data __UNUSED__, void *ev)
{
@ -1129,9 +1120,9 @@ _ecore_x_event_handle_selection_request(XEvent *xevent)
e->requestor = xevent->xselectionrequest.requestor;
e->time = xevent->xselectionrequest.time;
e->selection = xevent->xselectionrequest.selection;
e->target = XGetAtomName(_ecore_x_disp, xevent->xselectionrequest.target);
e->target = xevent->xselectionrequest.target;
e->property = xevent->xselectionrequest.property;
ecore_event_add(ECORE_X_EVENT_SELECTION_REQUEST, e, _ecore_x_event_free_selection_request, NULL);
ecore_event_add(ECORE_X_EVENT_SELECTION_REQUEST, e, NULL, NULL);
if ((sd = _ecore_x_selection_get(xevent->xselectionrequest.selection)) &&
(sd->win == xevent->xselectionrequest.owner))