diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-01-09 00:37:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-05-07 12:55:03 +0200 |
commit | 0d3546fbfe0c4fe35108193916ea3cc6c885314f (patch) | |
tree | 5022dae0c487e93e72b4ffbdb0cbb1c13b7f9c9b /nx-X11 | |
parent | 0c45fe046ab5ead773e38b1f93c8e5caf9e3ff11 (diff) | |
download | nx-libs-0d3546fbfe0c4fe35108193916ea3cc6c885314f.tar.gz nx-libs-0d3546fbfe0c4fe35108193916ea3cc6c885314f.tar.bz2 nx-libs-0d3546fbfe0c4fe35108193916ea3cc6c885314f.zip |
Events.c: simplify nxagentInternalWindowsTree
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index e02f25288..e0acf354f 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -545,19 +545,15 @@ void nxagentInternalWindowInfo(WindowPtr pWin, int indent, Bool newLine) void nxagentInternalWindowsTree(WindowPtr pWin, int indent) { - while (pWin) + for (; pWin; pWin = pWin -> nextSib) { - WindowPtr pChild = pWin -> firstChild; - fprintf(stderr, "%*s", indent, ""); nxagentInternalWindowInfo(pWin, indent, TRUE); fprintf(stderr, "\n"); - nxagentInternalWindowsTree(pChild, indent + 4); - - pWin = pWin -> nextSib; + nxagentInternalWindowsTree(pWin -> firstChild, indent + 4); } } |