dix: PrintWindowTree(): move locally-used variabes into local scope

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-03 16:03:08 +02:00
committed by Enrico Weigelt
parent 7f4bef0174
commit 638f8e16ac

View File

@@ -393,15 +393,12 @@ PrintPassiveGrabs(void)
void
PrintWindowTree(void)
{
int depth;
WindowPtr pWin;
for (unsigned int walkScreenIdx = 0; walkScreenIdx < screenInfo.numScreens; walkScreenIdx++) {
ScreenPtr walkScreen = screenInfo.screens[walkScreenIdx];
ErrorF("[dix] Dumping windows for screen %d (pixmap %x):\n", walkScreenIdx,
(unsigned) walkScreen->GetScreenPixmap(walkScreen)->drawable.id);
pWin = walkScreen->root;
depth = 1;
WindowPtr pWin = walkScreen->root;
int depth = 1;
while (pWin) {
log_window_info(pWin, depth);
if (pWin->firstChild) {