aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 22:34:03 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:38:11 +0100
commit92c8325f36944058ac4972eb4139128122ecad7c (patch)
tree4b18eba650dd646afa3ae0c8b364e2d9c8fd9004
parent616d8619f9420eca1eb7adb628de2675d6b359a2 (diff)
downloadnx-libs-92c8325f36944058ac4972eb4139128122ecad7c.tar.gz
nx-libs-92c8325f36944058ac4972eb4139128122ecad7c.tar.bz2
nx-libs-92c8325f36944058ac4972eb4139128122ecad7c.zip
nxagent: treat nxagentLastWindowDestroyed as Boolean
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Handlers.c2
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
index b8c6ff18a..59f368e4f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
@@ -222,7 +222,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
#ifdef TEST
- if (nxagentLastWindowDestroyed == 1)
+ if (nxagentLastWindowDestroyed)
{
fprintf(stderr, "nxagentBlockHandler: Elapsed time [%lu].\n",
now - nxagentLastWindowDestroyedTime);
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index 54e553338..a5f457796 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -643,7 +643,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin)
}
if (nxagentOption(Rootless) && nxagentRootlessDialogPid == 0 &&
- nxagentLastWindowDestroyed == False && nxagentSomeWindowsAreMapped() == False)
+ !nxagentLastWindowDestroyed && nxagentSomeWindowsAreMapped() == False)
{
#ifdef TEST
fprintf(stderr, "nxagentDestroyWindow: Last mapped window as been destroyed.\n");