diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-08-08 21:33:48 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-09-29 17:44:08 +0200 |
commit | b5cac6722b0275d3ccdf0730e651232b0d621cb2 (patch) | |
tree | 77473cdf1150f79caeeac71896e1ded642939a97 | |
parent | 4db1172ae35d7e153507ed91f20a58b22e3f6a2e (diff) | |
download | nx-libs-b5cac6722b0275d3ccdf0730e651232b0d621cb2.tar.gz nx-libs-b5cac6722b0275d3ccdf0730e651232b0d621cb2.tar.bz2 nx-libs-b5cac6722b0275d3ccdf0730e651232b0d621cb2.zip |
Clipboard.c: flush the display during transfer phase
This avoids delays, timeouts and missing copy/paste actions.
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 94219b6d1..3ecb8f161 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -991,6 +991,8 @@ void nxagentTransferSelection(int resource) SetClientSelectionStage(WaitSize); + NXFlushDisplay(nxagentDisplay, NXFlushLink); + break; } case SelectionStageQueryData: @@ -1043,6 +1045,10 @@ void nxagentTransferSelection(int resource) SetClientSelectionStage(WaitData); + /* we've seen situations where you had to move the mouse or press a + key to let the transfer complete. Flushing here fixed it */ + NXFlushDisplay(nxagentDisplay, NXFlushLink); + break; } default: |