aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-04-22 23:00:57 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-05-11 18:53:27 +0200
commitc4887d28c1c390ffb33f3e289a6ec02790a64ab0 (patch)
tree44175aa610e6588fdf355b88f8d19f741717411b /nx-X11
parenta7a9f35534dcb18a4e084a7a3bf60fb9efdc90ad (diff)
downloadnx-libs-c4887d28c1c390ffb33f3e289a6ec02790a64ab0.tar.gz
nx-libs-c4887d28c1c390ffb33f3e289a6ec02790a64ab0.tar.bz2
nx-libs-c4887d28c1c390ffb33f3e289a6ec02790a64ab0.zip
Events.c: make nxagentDebugInput a Boolean
because that's what it is...
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index 9bd8dee16..4163c7b71 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -132,7 +132,7 @@
extern Bool nxagentOnce;
#ifdef NX_DEBUG_INPUT
-int nxagentDebugInput = 0;
+Bool nxagentDebugInput = False;
#endif
#ifdef DEBUG
@@ -282,7 +282,7 @@ void nxagentRemoveDuplicatedKeys(XEvent *X);
void ProcessInputEvents(void)
{
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Processing input.\n", __func__);
}
@@ -1205,7 +1205,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
case ButtonPress:
{
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Going to handle new ButtonPress event.\n", __func__);
}
@@ -1270,7 +1270,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
}
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Adding ButtonPress event.\n", __func__);
}
@@ -1304,7 +1304,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
case ButtonRelease:
{
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Going to handle new ButtonRelease event.\n", __func__);
}
@@ -1344,7 +1344,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
}
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Adding ButtonRelease event.\n", __func__);
}
@@ -1384,7 +1384,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
#endif
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Handling motion notify window [%ld] root [%ld] child [%ld].\n",
__func__, X.xmotion.window, X.xmotion.root, X.xmotion.subwindow);
@@ -1439,7 +1439,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
&& X.xmotion.subwindow == None))
{
#ifdef NX_DEBUG_INPUT
- if (nxagentDebugInput == 1)
+ if (nxagentDebugInput)
{
fprintf(stderr, "%s: Adding motion event [%d, %d] to the queue.\n", __func__,
x.u.keyButtonPointer.rootX, x.u.keyButtonPointer.rootY);
@@ -4571,11 +4571,11 @@ void nxagentGuessDumpInputInfo(ClientPtr client, Atom property, char *data)
{
if (*data != 0)
{
- nxagentDebugInput = 1;
+ nxagentDebugInput = True;
}
else
{
- nxagentDebugInput = 0;
+ nxagentDebugInput = False;
}
}
}