Commit 0d3546fb authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Events.c: simplify nxagentInternalWindowsTree

parent 0c45fe04
...@@ -545,19 +545,15 @@ void nxagentInternalWindowInfo(WindowPtr pWin, int indent, Bool newLine) ...@@ -545,19 +545,15 @@ void nxagentInternalWindowInfo(WindowPtr pWin, int indent, Bool newLine)
void nxagentInternalWindowsTree(WindowPtr pWin, int indent) void nxagentInternalWindowsTree(WindowPtr pWin, int indent)
{ {
while (pWin) for (; pWin; pWin = pWin -> nextSib)
{ {
WindowPtr pChild = pWin -> firstChild;
fprintf(stderr, "%*s", indent, ""); fprintf(stderr, "%*s", indent, "");
nxagentInternalWindowInfo(pWin, indent, TRUE); nxagentInternalWindowInfo(pWin, indent, TRUE);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
nxagentInternalWindowsTree(pChild, indent + 4); nxagentInternalWindowsTree(pWin -> firstChild, indent + 4);
pWin = pWin -> nextSib;
} }
} }
......
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