diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-09-20 16:41:56 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-06-08 21:16:38 +0200 |
commit | 60380a6a5ed99680f86c5daf14bb412b6d3383a4 (patch) | |
tree | c6d99f42f6d7bdbb55fdccba6752a029829d6d83 | |
parent | 12ed2c635b6979f84832655ffe66171482d80469 (diff) | |
download | nx-libs-60380a6a5ed99680f86c5daf14bb412b6d3383a4.tar.gz nx-libs-60380a6a5ed99680f86c5daf14bb412b6d3383a4.tar.bz2 nx-libs-60380a6a5ed99680f86c5daf14bb412b6d3383a4.zip |
Clipboard.c: do not set stage to new value if already set to that value
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 11c6ae013..fddb53b97 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -394,6 +394,15 @@ void nxagentDumpClipboardStat(void) */ static void setClientSelectionStage(int stage) { + if (lastClientStage == stage) + { + #ifdef DEBUG + fprintf(stderr, "%s: selection stage already set to [%s] - doing nothing\n", __func__, + getClientSelectionStageString(lastClientStage)); + #endif + return; + } + #ifdef DEBUG fprintf(stderr, "%s: Changing selection stage from [%s] to [%s]\n", __func__, getClientSelectionStageString(lastClientStage), getClientSelectionStageString(stage)); |