aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-31 00:24:41 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commite2ff39e04a7e3db9e57323342bd6cc337e448db9 (patch)
tree78e3c522b12533b1b0eeaec620dc843aaa7a30a7 /nx-X11/programs/Xserver/hw/nxagent/Handlers.c
parent94fd6d2344df9d391fc977053b648c137cb4abae (diff)
downloadnx-libs-e2ff39e04a7e3db9e57323342bd6cc337e448db9.tar.gz
nx-libs-e2ff39e04a7e3db9e57323342bd6cc337e448db9.tar.bz2
nx-libs-e2ff39e04a7e3db9e57323342bd6cc337e448db9.zip
nxagent: make nxagentBlocking an Boolean
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Handlers.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Handlers.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
index a3624dbfc..cdba83264 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
@@ -122,7 +122,7 @@ Bool nxagentXdmcpAlertUp = False;
*/
int nxagentBuffer;
-int nxagentBlocking;
+Bool nxagentBlocking;
int nxagentCongestion;
double nxagentBytesIn;
@@ -322,7 +322,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
nxagentForceSynchronization = 0;
}
else if (nxagentUserInput(NULL) == 0 &&
- nxagentBlocking == 0 &&
+ !nxagentBlocking &&
nxagentCongestion <= 4)
{
#ifdef TEST
@@ -391,7 +391,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
#ifdef DYNAMIC_DISPLAY_BUFFER
- if (nxagentBlocking == 1 &&
+ if (nxagentBlocking &&
nxagentBuffer > MINIMUM_DISPLAY_BUFFER)
{
nxagentBuffer >>= 1;
@@ -587,7 +587,7 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
* Can become true during the dispatch loop.
*/
- nxagentBlocking = 0;
+ nxagentBlocking = False;
/*
* Check if we got new events.
@@ -759,7 +759,7 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas
nxagentShadowSendUpdates(&suspended);
- if (nxagentBlocking == 0)
+ if (!nxagentBlocking)
{
nxagentSynchronizeDrawable((DrawablePtr) nxagentShadowPixmapPtr, DONT_WAIT,
ALWAYS_BREAK, nxagentShadowWindowPtr);
@@ -830,7 +830,7 @@ void nxagentShadowWakeupHandler(void * data, int count, void * mask)
* Can become true during the dispatch loop.
*/
- nxagentBlocking = 0;
+ nxagentBlocking = False;
/*
* Check if we got new events.
@@ -1200,7 +1200,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
nxagentDispatchEvents(NULL);
- nxagentBlocking = 1;
+ nxagentBlocking = True;
}
/*