MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / DumpState

Method DumpState

TranslucentTB/taskbar/taskbarattributeworker.cpp:1249–1359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1247}
1248
1249void TaskbarAttributeWorker::DumpState()
1250{
1251 MessagePrint(spdlog::level::off, L"===== Begin TaskbarAttributeWorker state dump =====");
1252
1253 std::wstring buf;
1254 for (const auto &[monitor, info] : m_Taskbars)
1255 {
1256 buf.clear();
1257 std::format_to(std::back_inserter(buf), L"Monitor {}:", static_cast<void *>(monitor));
1258 MessagePrint(spdlog::level::off, buf);
1259
1260 buf.clear();
1261 std::format_to(std::back_inserter(buf), L"\tTaskbar handle: {}", DumpWindow(info.Taskbar.TaskbarWindow));
1262 MessagePrint(spdlog::level::off, buf);
1263
1264 buf.clear();
1265 std::format_to(std::back_inserter(buf), L"\tPeek button handle: {}", DumpWindow(info.Taskbar.PeekWindow));
1266 MessagePrint(spdlog::level::off, buf);
1267
1268 buf.clear();
1269 std::format_to(std::back_inserter(buf), L"\tInner XAML handle: {}", DumpWindow(info.Taskbar.InnerXamlContent));
1270 MessagePrint(spdlog::level::off, buf);
1271
1272 buf.clear();
1273 std::format_to(std::back_inserter(buf), L"\tWorkerW handle: {}", DumpWindow(info.Taskbar.WorkerWWindow));
1274 MessagePrint(spdlog::level::off, buf);
1275
1276 MessagePrint(spdlog::level::off, L"\tMaximised windows:");
1277 DumpWindowSet(L"\t\t\t", info.MaximisedWindows);
1278
1279 MessagePrint(spdlog::level::off, L"\tNormal windows:");
1280 DumpWindowSet(L"\t\t\t", info.NormalWindows);
1281 }
1282
1283 buf.clear();
1284 std::format_to(std::back_inserter(buf), L"User is using Aero Peek: {}", m_PeekActive);
1285 MessagePrint(spdlog::level::off, buf);
1286
1287 buf.clear();
1288 std::format_to(std::back_inserter(buf), L"User is using Task View: {}", m_TaskViewActive);
1289 MessagePrint(spdlog::level::off, buf);
1290
1291 if (m_CurrentStartMonitor != nullptr)
1292 {
1293 buf.clear();
1294 std::format_to(std::back_inserter(buf), L"Start menu is opened: true [monitor {}]", static_cast<void *>(m_CurrentStartMonitor));
1295 MessagePrint(spdlog::level::off, buf);
1296 }
1297 else
1298 {
1299 MessagePrint(spdlog::level::off, L"Start menu is opened: false");
1300 }
1301
1302 if (m_CurrentSearchMonitor != nullptr)
1303 {
1304 buf.clear();
1305 std::format_to(std::back_inserter(buf), L"Search is opened: true [monitor {}]", static_cast<void *>(m_CurrentSearchMonitor));
1306 MessagePrint(spdlog::level::off, buf);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected