From b66b99a8310d312c53007e124a0924f5795b1b2c Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 2 Nov 2020 23:10:52 +0100 Subject: Clipboard.c: use NullClient instead of NULL where appropriate --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 86b960a42..f57459882 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -109,7 +109,7 @@ static SelectionOwner *lastSelectionOwner = NULL; /* FIXME: can this also be stored per selection? */ static XlibAtom serverLastRequestedSelection = -1; -#define IS_INTERNAL_OWNER(lsoindex) (lastSelectionOwner[lsoindex].client != NULL) +#define IS_INTERNAL_OWNER(lsoindex) (lastSelectionOwner[lsoindex].client != NullClient) /* * Needed to handle the notify selection event to @@ -656,7 +656,7 @@ static void initSelectionOwnerData(int index) /* there's no owner on nxagent side anymore */ static void clearSelectionOwnerData(int index) { - lastSelectionOwner[index].client = NULL; + lastSelectionOwner[index].client = NullClient; lastSelectionOwner[index].window = None; lastSelectionOwner[index].windowPtr = NULL; lastSelectionOwner[index].lastTimeChanged = GetTimeInMillis(); -- cgit v1.2.3