summaryrefslogtreecommitdiff
path: root/emu/port/win-x11a.c
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2024-04-22 07:09:01 +0100
committerGitHub <noreply@github.com>2024-04-22 07:09:01 +0100
commit73b5cba380d148e77d696880027a416cda50f756 (patch)
treea642616d55c1d79ff9ef22e325c359947dbfbcf0 /emu/port/win-x11a.c
parent22dd4b9c0961cd615779c72accc1e150357289cf (diff)
parent1bf9388ccb3bd33b5825ee20ec6824b17508f045 (diff)
Merge pull request #16 from pete/multiple-small-fixes
Multiple small fixes
Diffstat (limited to 'emu/port/win-x11a.c')
-rw-r--r--emu/port/win-x11a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emu/port/win-x11a.c b/emu/port/win-x11a.c
index bbc65761..0fc38450 100644
--- a/emu/port/win-x11a.c
+++ b/emu/port/win-x11a.c
@@ -969,7 +969,7 @@ xinitscreen(int xsize, int ysize, ulong reqchan, ulong *chan, int *d)
}
clipboard = XInternAtom(xmcon, "CLIPBOARD", False);
- utf8string = XInternAtom(xmcon, "UTF8_STRING", False);
+ utf8string = XInternAtom(xmcon, "UTF8_STRING", True);
targets = XInternAtom(xmcon, "TARGETS", False);
text = XInternAtom(xmcon, "TEXT", False);
compoundtext = XInternAtom(xmcon, "COMPOUND_TEXT", False);
@@ -1523,7 +1523,7 @@ _xgetsnarf(XDisplay *xd)
*/
prop = 1;
XChangeProperty(xd, xdrawable, prop, XA_STRING, 8, PropModeReplace, (uchar*)"", 0);
- XConvertSelection(xd, clipboard, XA_STRING, prop, xdrawable, CurrentTime);
+ XConvertSelection(xd, clipboard, utf8string, prop, xdrawable, CurrentTime);
XFlush(xd);
lastlen = 0;
for(i=0; i<10 || (lastlen!=0 && i<30); i++){