[X2Go-Commits] [nx-libs] 316/429: Clipboard.c: do not set stage to new value if already set to that value
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:56 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 60380a6a5ed99680f86c5daf14bb412b6d3383a4
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Sun Sep 20 16:41:56 2020 +0200
Clipboard.c: do not set stage to new value if already set to that value
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 9 +++++++++
1 file changed, 9 insertions(+)
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));
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list