aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 3d33cb931..e316b9bbf 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -95,8 +95,9 @@ typedef struct _SelectionOwner
* owner is outside nxagent.
*/
-/* FIXME: these should also be stored per selection */
-static SelectionOwner *lastSelectionOwner;
+static SelectionOwner *lastSelectionOwner = NULL;
+
+/* FIXME: can this also be stored per selection? */
static XlibAtom serverLastRequestedSelection;
#define IS_INTERNAL_OWNER(lsoindex) (lastSelectionOwner[lsoindex].client != NULL)