diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-10-12 20:14:16 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-06-20 20:12:50 +0200 |
commit | bff23cb94bc2fc3befe8d375c761b7e96b16984c (patch) | |
tree | bae41fe6c88a15607528ad5db0e2005867aa39b2 | |
parent | bf0e05fd166012b5fb38eb7533c27359b8d954f3 (diff) | |
download | nx-libs-bff23cb94bc2fc3befe8d375c761b7e96b16984c.tar.gz nx-libs-bff23cb94bc2fc3befe8d375c761b7e96b16984c.tar.bz2 nx-libs-bff23cb94bc2fc3befe8d375c761b7e96b16984c.zip |
Clipboard.c: rephrase FIXME
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 30b781590..3e396d2c4 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -2533,13 +2533,19 @@ Bool nxagentInitClipboard(WindowPtr pWin) * claim the ownership. Note that we report our serverWindow as * owner, not the real window! */ - if (IS_INTERNAL_OWNER(index) && lastSelectionOwner[index].window) - { - XSetSelectionOwner(nxagentDisplay, lastSelectionOwner[index].remSelection, serverWindow, CurrentTime); - } + if (IS_INTERNAL_OWNER(index) && lastSelectionOwner[index].window) + { + /* remSelection has already be adjusted above */ + XSetSelectionOwner(nxagentDisplay, lastSelectionOwner[index].remSelection, serverWindow, CurrentTime); + } + /* + * FIXME: Shouldn't we reset lastServers[index].* and + * lastClients[index].* here? Problem is that (internal) + * clients might still be waiting for answers. Should reply + * with failure then + */ } } - /* FIXME: Shouldn't we reset lastServers[index].* and lastClients[index].* here? */ } else { |