From 1fd98b193c3f4cadb227017bb3434d1fd2c37a13 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Wed, 25 Nov 2020 00:26:16 +0100 Subject: Clipboard.c: add another FIXME --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index d46d4c7fc..682dfbab0 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -2163,7 +2163,11 @@ static void setSelectionOwnerOnXServer(Selection *pSelection) /* FIXME - if (XGetSelectionOwner(nxagentDisplay,pSelection->selection) == serverWindow) +FIXME2: instead of XGetSelectionOwner we could check if the Xfixes + SetSelectionOwner event has arrived in the event queue; + possibly saving one roundtrip. + + if (XGetSelectionOwner(nxagentDisplay, pSelection->selection) == serverWindow) { fprintf (stderr, "%s: SetSelectionOwner OK\n", __func__); -- cgit v1.2.3