From 8a12d6cf7e3b11ea46e6d76f219b1d1cdde9e797 Mon Sep 17 00:00:00 2001 From: Nikolai Nechaev Date: Tue, 10 Mar 2026 19:04:21 +0900 Subject: algo/dwindle: Respect `force_split` when moving windows to workspaces (#13038) Respect `dwindle:force_split` not only when mapping new windows, but also when moving windows to workspaces. Fixes #13009. --- hyprtester/src/tests/shared.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hyprtester/src/tests/shared.cpp') diff --git a/hyprtester/src/tests/shared.cpp b/hyprtester/src/tests/shared.cpp index f6e2fce9..32824f3b 100644 --- a/hyprtester/src/tests/shared.cpp +++ b/hyprtester/src/tests/shared.cpp @@ -181,3 +181,13 @@ bool Tests::writeFile(const std::string& name, const std::string& contents) { return true; } + +std::string Tests::getWindowAttribute(const std::string& winInfo, const std::string& attr) { + auto pos = winInfo.find(attr); + if (pos == std::string::npos) { + NLog::log("{}Window attribute not found: '{}'", Colors::RED, attr); + return "Wrong window attribute"; + } + auto pos2 = winInfo.find('\n', pos); + return winInfo.substr(pos, pos2 - pos); +} -- cgit v1.2.3