/*
* ion/ioncore/selection.c
*
- * Copyright (c) Tuomo Valkonen 1999-2007.
+ * Copyright (c) Tuomo Valkonen 1999-2008.
*
* See the included file LICENSE for details.
*/
bool ok=FALSE;
sev.property=None;
- sev.target=None;
if(selection_data==NULL || ev->property==None)
goto refuse;
if(ok){
XSetTextProperty(ioncore_g.dpy, ev->requestor, &prop, ev->property);
- sev.target=ev->target;
sev.property=ev->property;
XFree(prop.value);
}
sev.type=SelectionNotify;
sev.requestor=ev->requestor;
sev.selection=ev->selection;
+ sev.target=ev->target;
sev.time=ev->time;
XSendEvent(ioncore_g.dpy, ev->requestor, False, 0L, (XEvent*)&sev);
}