x11: Set correct clipboard target type in SelectionRequest handling
This commit is contained in:
1 parent
3deb07ea39
commit
5fe010270a
1 file changed
+2
-1
@@ -676,9 +676,10 @@ static void X11_HandleClipboardEvent(_THIS, const XEvent *xevent)
|
|||||||
&overflow, &seln_data) == Success) {
|
&overflow, &seln_data) == Success) {
|
||||||
if (seln_format != None) {
|
if (seln_format != None) {
|
||||||
X11_XChangeProperty(display, req->requestor, req->property,
|
X11_XChangeProperty(display, req->requestor, req->property,
|
||||||
sevent.xselection.target, seln_format, PropModeReplace,
|
req->target, 8, PropModeReplace,
|
||||||
seln_data, nbytes);
|
seln_data, nbytes);
|
||||||
sevent.xselection.property = req->property;
|
sevent.xselection.property = req->property;
|
||||||
|
sevent.xselection.target = req->target;
|
||||||
X11_XFree(seln_data);
|
X11_XFree(seln_data);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user