From 8264b03e8df725c475e43faf34a681a199f6fa7e Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 21 Jun 2021 23:14:25 +0200 Subject: Clipboard.c: Add debug output when selection is already cleared --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nx-X11/programs') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 3b08c1133..72ca6ac64 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -931,6 +931,12 @@ void nxagentHandleSelectionClearFromXServerByIndex(int index) invalidateTargetCache(index); } + else + { + #ifdef DEBUG + fprintf(stderr, "%s: selection already cleared - doing nothing.\n", __func__); + #endif + } } void nxagentHandleSelectionClearFromXServerByAtom(XlibAtom sel) -- cgit v1.2.3