summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/shared.cpp
diff options
context:
space:
mode:
authorNikolai Nechaev <nikolay_nechaev@mail.ru>2026-03-10 19:04:21 +0900
committerGitHub <noreply@github.com>2026-03-10 10:04:21 +0000
commit8a12d6cf7e3b11ea46e6d76f219b1d1cdde9e797 (patch)
treea0a2b62059f89f45aef0f20616768460748e95fd /hyprtester/src/tests/shared.cpp
parente32eeb1d454b029a24ca71f410896bf52839085d (diff)
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.
Diffstat (limited to 'hyprtester/src/tests/shared.cpp')
-rw-r--r--hyprtester/src/tests/shared.cpp10
1 files changed, 10 insertions, 0 deletions
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);
+}