From bbf9d74c40354974cdb6023ade47bf7d8be26330 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 21 Jun 2021 22:26:12 +0200 Subject: Clipboard.c: print debug message if selection is already cleared --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 09c7eb2c2..20a380817 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -927,6 +927,12 @@ void nxagentHandleSelectionClearFromXServer(XEvent *X) invalidateTargetCache(index); } + #ifdef DEBUG + else + { + fprintf(stderr, "%s: selection already cleared - doing nothing.\n", __func__); + } + #endif } } -- cgit v1.2.3