aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Composite.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Composite.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Composite.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Composite.c b/nx-X11/programs/Xserver/hw/nxagent/Composite.c
index 7cecd3490..9e14a82bb 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Composite.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Composite.c
@@ -47,7 +47,7 @@
* Set if the composite extension is supported by the remote display.
*/
-int nxagentCompositeEnable = UNDEFINED;
+Bool nxagentCompositeEnable = False;
void nxagentCompositeExtensionInit(void)
{
@@ -55,7 +55,7 @@ void nxagentCompositeExtensionInit(void)
* Set the flag only if the initialization completes.
*/
- nxagentCompositeEnable = 0;
+ nxagentCompositeEnable = False;
if (nxagentOption(Composite))
{
@@ -96,7 +96,7 @@ void nxagentCompositeExtensionInit(void)
fprintf(stderr, "nxagentCompositeExtensionInit: Enabling the use of the composite extension.\n");
#endif
- nxagentCompositeEnable = 1;
+ nxagentCompositeEnable = True;
}
#ifdef TEST
else
@@ -115,8 +115,7 @@ void nxagentCompositeExtensionInit(void)
void nxagentRedirectDefaultWindows(void)
{
- if (nxagentOption(Rootless) ||
- nxagentCompositeEnable == 0)
+ if (nxagentOption(Rootless) || !nxagentCompositeEnable)
{
#ifdef TEST
fprintf(stderr, "nxagentRedirectDefaultWindows: Not redirecting default "
@@ -154,8 +153,7 @@ void nxagentRedirectDefaultWindows(void)
void nxagentRedirectWindow(WindowPtr pWin)
{
- if (!nxagentOption(Rootless) ||
- nxagentCompositeEnable == 0)
+ if (!nxagentOption(Rootless) || !nxagentCompositeEnable)
{
#ifdef TEST
fprintf(stderr, "nxagentRedirectWindow: Not redirecting window id [%ld] "