Skip to content

Commit e1e38e2

Browse files
Guldomanslouken
authored andcommitted
x11: Set correct clipboard target type in SelectionRequest handling
(cherry picked from commit 5fe0102)
1 parent 2638809 commit e1e38e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/video/x11/SDL_x11events.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,10 @@ static void X11_HandleClipboardEvent(_THIS, const XEvent *xevent)
676676
&overflow, &seln_data) == Success) {
677677
if (seln_format != None) {
678678
X11_XChangeProperty(display, req->requestor, req->property,
679-
sevent.xselection.target, seln_format, PropModeReplace,
679+
req->target, 8, PropModeReplace,
680680
seln_data, nbytes);
681681
sevent.xselection.property = req->property;
682+
sevent.xselection.target = req->target;
682683
X11_XFree(seln_data);
683684
break;
684685
} else {

0 commit comments

Comments
 (0)