扫描窗口管理器启动时需要管理的窗口

This commit is contained in:
2025-08-04 01:44:26 +08:00
parent 80f909ce22
commit e22265937e
5 changed files with 108 additions and 3 deletions

View File

@@ -21,5 +21,16 @@ int main(int argc, char *argv[]) {
}
}
window_list_t *window_list = scan_window_list();
if (window_list) {
for (uint32_t i = 0; i < window_list->count; i++) {
printf("window[%u]: 0x%x\n", i, window_list->list[i]);
}
} else {
printf("no window\n");
}
free_window_list(window_list);
return 0;
}