| 771 | } |
| 772 | |
| 773 | void TaskbarAttributeWorker::DumpWindowSet(std::wstring_view prefix, const std::unordered_set<Window> &set, bool showInfo) |
| 774 | { |
| 775 | if (!set.empty()) |
| 776 | { |
| 777 | std::wstring buf; |
| 778 | for (const Window window : set) |
| 779 | { |
| 780 | buf.clear(); |
| 781 | if (showInfo) |
| 782 | { |
| 783 | buf += prefix; |
| 784 | buf += DumpWindow(window); |
| 785 | } |
| 786 | else |
| 787 | { |
| 788 | std::format_to(std::back_inserter(buf), L"{}{}", prefix, static_cast<void *>(window.handle())); |
| 789 | } |
| 790 | MessagePrint(spdlog::level::off, buf); |
| 791 | } |
| 792 | } |
| 793 | else |
| 794 | { |
| 795 | MessagePrint(spdlog::level::off, std::format(L"{}[none]", prefix)); |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | std::wstring TaskbarAttributeWorker::DumpWindow(Window window) |
| 800 | { |