Skip to content

Commit

Permalink
x11: Set correct clipboard target type in SelectionRequest handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Guldoman authored and slouken committed Oct 9, 2024
1 parent 3deb07e commit 5fe0102
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11events.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,10 @@ static void X11_HandleClipboardEvent(_THIS, const XEvent *xevent)
&overflow, &seln_data) == Success) {
if (seln_format != None) {
X11_XChangeProperty(display, req->requestor, req->property,
sevent.xselection.target, seln_format, PropModeReplace,
req->target, 8, PropModeReplace,
seln_data, nbytes);
sevent.xselection.property = req->property;
sevent.xselection.target = req->target;
X11_XFree(seln_data);
break;
} else {
Expand Down

0 comments on commit 5fe0102

Please sign in to comment.