aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-10-13 00:17:27 +0200
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:50 +0200
commit29413b32a2b9e7abacefe812f427366c6cc61210 (patch)
treeec73aa4399bfcdfbc25d9c5c662f393c3459f12d /nx-X11/programs/Xserver
parent59ee58ee79d948223e74c2a8a745565da95c64aa (diff)
downloadnx-libs-29413b32a2b9e7abacefe812f427366c6cc61210.tar.gz
nx-libs-29413b32a2b9e7abacefe812f427366c6cc61210.tar.bz2
nx-libs-29413b32a2b9e7abacefe812f427366c6cc61210.zip
Clipboard.c: fix comment position and init array pointer
Diffstat (limited to 'nx-X11/programs/Xserver')
-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)