diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2021-03-02 23:14:48 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-06-20 20:12:51 +0200 |
commit | 6fe8bf8fbaf955a4bffb98507a1ebeed00aff593 (patch) | |
tree | c3a525850d9122d9a0276dd0e98782ba4a07bfed /nx-X11/programs/Xserver/hw | |
parent | 124f5a5c6e4f37880c482d1037636ccfd7b6fca0 (diff) | |
download | nx-libs-6fe8bf8fbaf955a4bffb98507a1ebeed00aff593.tar.gz nx-libs-6fe8bf8fbaf955a4bffb98507a1ebeed00aff593.tar.bz2 nx-libs-6fe8bf8fbaf955a4bffb98507a1ebeed00aff593.zip |
Clipboard.c: always flush after XConvertSelection() call
This ensures the convert will be sent out immediately.
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 7fefd5ee1..d96a9946a 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1272,6 +1272,8 @@ void nxagentHandleSelectionRequestFromXServer(XEvent *X) X->xselectionrequest.target, serverTransToAgentProperty, serverWindow, lastClients[index].time); + NXFlushDisplay(nxagentDisplay, NXFlushLink); + #ifdef DEBUG fprintf(stderr, "%s: Sent XConvertSelection: selection [%d][%s] target [%ld][%s] property [%ld][%s] window [0x%lx] time [%u] .\n", __func__, CurrentSelections[index].selection, NameForRemAtom(CurrentSelections[index].selection)), @@ -2839,6 +2841,9 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, XConvertSelection(nxagentDisplay, remSelection, remTarget, remProperty, serverWindow, CurrentTime); + + NXFlushDisplay(nxagentDisplay, NXFlushLink); + /* XConvertSelection will always return 1 (check the source!), so no need to check the return code. */ |