[X2Go-Commits] [nx-libs] 31/108: nxagent: use nxagentWMPassed as Bool all over the place

git-admin at x2go.org git-admin at x2go.org
Fri Nov 9 20:35:37 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository nx-libs.

commit 1a8c4532e6640e20eba772c0e4f8f36b933c66ae
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Mon Sep 24 21:08:18 2018 +0200

    nxagent: use nxagentWMPassed as Bool all over the place
    
    has been used as integer sometimes (technically correct, but not nice)
---
 nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c | 2 +-
 nx-X11/programs/Xserver/hw/nxagent/Screen.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
index 5cfa927..22d5f19 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -142,7 +142,7 @@ void nxagentWaitDisplay(void);
 void nxagentListRemoteFonts(const char *, int);
 
 unsigned int nxagentWMtimeout = 0;
-Bool         nxagentWMPassed  = 0;
+Bool         nxagentWMPassed  = False;
 
 /*
  * Timeouts based on screen saver time.
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index 8df5ec5..d8cf695 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -3057,7 +3057,7 @@ int nxagentShadowPoll(PixmapPtr nxagentShadowPixmapPtr, GCPtr nxagentShadowGCPtr
 
   if (result == 1)
   {
-    if (nxagentWMPassed == 0)
+    if (!nxagentWMPassed)
     {
       nxagentRemoveSplashWindow(NULL);
     }

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