mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 12:25:07 +00:00
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:
committed by
Enrico Weigelt
parent
7f4bef0174
commit
638f8e16ac
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user