Commit 92c8325f authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

nxagent: treat nxagentLastWindowDestroyed as Boolean

parent 616d8619
...@@ -222,7 +222,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask) ...@@ -222,7 +222,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
#ifdef TEST #ifdef TEST
if (nxagentLastWindowDestroyed == 1) if (nxagentLastWindowDestroyed)
{ {
fprintf(stderr, "nxagentBlockHandler: Elapsed time [%lu].\n", fprintf(stderr, "nxagentBlockHandler: Elapsed time [%lu].\n",
now - nxagentLastWindowDestroyedTime); now - nxagentLastWindowDestroyedTime);
......
...@@ -643,7 +643,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin) ...@@ -643,7 +643,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin)
} }
if (nxagentOption(Rootless) && nxagentRootlessDialogPid == 0 && if (nxagentOption(Rootless) && nxagentRootlessDialogPid == 0 &&
nxagentLastWindowDestroyed == False && nxagentSomeWindowsAreMapped() == False) !nxagentLastWindowDestroyed && nxagentSomeWindowsAreMapped() == False)
{ {
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentDestroyWindow: Last mapped window as been destroyed.\n"); fprintf(stderr, "nxagentDestroyWindow: Last mapped window as been destroyed.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment