summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 1005fac..ed41535 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -2566,6 +2566,7 @@ selection_copy_string(Atom sel, char *str, size_t len)
if (XGetSelectionOwner(Xdisplay, sel) != TermWin.vt) {
libast_print_error("Can't take ownership of selection\n");
}
+ XFlush(Xdisplay);
} else {
D_SELECT(("Copying selection to cut buffer %d\n", (int) sel));
XChangeProperty(Xdisplay, Xroot, sel, XA_STRING, 8, PropModeReplace, str, len);