From bdfe1277db1c73b87238ed432385886b4d1b87ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Tue, 10 Jun 2025 14:21:11 +0200 Subject: [PATCH] Serialization works, here's proof lol --- src/main.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6b9b80d..08efa77 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,15 +3,17 @@ int main(int, char**){ Workspace w = HyprlandService::getCurrentWorkspace(); - std::cout << w.id << std::endl; - std::cout << w.name << std::endl; - std::cout << w.monitor << std::endl; - std::cout << w.monitorID << std::endl; - std::cout << w.windows << std::endl; - std::cout << w.hasfullscreen << std::endl; - std::cout << w.lastwindow << std::endl; - std::cout << w.lastwindowtitle << std::endl; - std::cout << w.ispersistent; + std::cout << "Active workspace:" << std::endl; + std::cout << " id: " << w.id << std::endl; + std::cout << " name: " << w.name << std::endl; + std::cout << " monitor: " << w.monitor << std::endl; + std::cout << " monitorID: " << w.monitorID << std::endl; + std::cout << " windows: " << w.windows << std::endl; + std::cout << " hasfullscreen: " << w.hasfullscreen << std::endl; + std::cout << " lastwindow: " << w.lastwindow << std::endl; + std::cout << " lastwindowtitle: " << w.lastwindowtitle << std::endl; + std::cout << " ispersistent: " << w.ispersistent << std::endl; + std::cout << std::endl; std::list clients = HyprlandService::getClients(); for (const auto& c : clients) {