[X2Go-Commits] [nx-libs] 188/429: Splash.c: remove unneccessary check

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:26 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 a57097ad005244043262fce395de0e3914fec2d1
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Mon Jan 4 19:01:55 2021 +0100

    Splash.c: remove unneccessary check
    
    PVs finding: "V547 Expression '!nxagentWMPassed' is always true."
---
 nx-X11/programs/Xserver/hw/nxagent/Splash.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Splash.c b/nx-X11/programs/Xserver/hw/nxagent/Splash.c
index ea82513e6..37f965f04 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Splash.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.c
@@ -332,15 +332,10 @@ void nxagentRemoveSplashWindow(void)
   fprintf(stderr, "%s: Destroying the splash window.\n", __func__);
   #endif
 
-  if (!nxagentWMPassed)
-  {
-    #ifdef NXAGENT_ONSTART
-    XSetSelectionOwner(nxagentDisplay, nxagentReadyAtom,
-                          nxagentDefaultWindows[0], CurrentTime);
-    #endif
-
-    nxagentWMPassed = True;
-  }
+  #ifdef NXAGENT_ONSTART
+  XSetSelectionOwner(nxagentDisplay, nxagentReadyAtom,
+                         nxagentDefaultWindows[0], CurrentTime);
+  #endif
 
   if (nxagentSplashWindow != None)
   {

--
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