From a57097ad005244043262fce395de0e3914fec2d1 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 4 Jan 2021 19:01:55 +0100 Subject: 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(-) (limited to 'nx-X11') 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) { -- cgit v1.2.3