[X2Go-Commits] [nx-libs] 35/108: Window.c: improve Bool usage
git-admin at x2go.org
git-admin at x2go.org
Fri Nov 9 20:35:38 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 1584395554707c75599f58c2bf8dfd3434053e13
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Mon Sep 24 21:47:28 2018 +0200
Window.c: improve Bool usage
---
nx-X11/programs/Xserver/hw/nxagent/Window.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index bde1c7d..55eeaa0 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -310,7 +310,7 @@ Bool nxagentCreateWindow(pWin)
/*
FIXME: We need to set save under on the real display?
*/
- if (nxagentSaveUnder == True)
+ if (nxagentSaveUnder)
{
mask |= CWSaveUnder;
attributes.save_under = False;
@@ -749,7 +749,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
return;
}
- if (switchOn == 0)
+ if (!switchOn)
{
nxagentWMDetect();
@@ -793,7 +793,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
XSendEvent(nxagentDisplay, DefaultRootWindow(nxagentDisplay), False,
SubstructureRedirectMask, &e);
- if (switchOn == 1)
+ if (switchOn)
{
nxagentFullscreenWindow = nxagentDefaultWindows[pScreen -> myNum];
@@ -2683,7 +2683,7 @@ void nxagentDisconnectWindow(void * p0, XID x1, void * p2)
nxagentDisconnectCursor(pCursor, (XID)0, pBool);
- if (*pBool == False)
+ if (!*pBool)
{
#ifdef WARNING
fprintf(stderr, "nxagentDisconnectWindow: WARNING failed disconnection of cursor at [%p]"
@@ -2937,7 +2937,7 @@ static void nxagentReconnectWindow(void * param0, XID param1, void * data_buffer
/*
FIXME: Do we need to set save unders attribute here?
*/
- if (nxagentSaveUnder == True)
+ if (nxagentSaveUnder)
{
mask |= CWSaveUnder;
attributes.save_under = pWin->saveUnder;
--
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