From d8f615751acb0ae5ff8916c284c5636034a18b50 Mon Sep 17 00:00:00 2001 From: ItsOhen Date: Fri, 26 Sep 2025 00:33:58 +0200 Subject: config: support more than 1 window rule per rule line. (#11689) Adds support for specifying multiple rules in one line --- hyprtester/src/tests/main/window.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'hyprtester/src/tests/main/window.cpp') diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp index 306d0d8f..4645a26c 100644 --- a/hyprtester/src/tests/main/window.cpp +++ b/hyprtester/src/tests/main/window.cpp @@ -228,6 +228,23 @@ static bool test() { testSwapWindow(); + NLog::log("{}Testing window rules", Colors::YELLOW); + if (!spawnKitty("wr_kitty")) + return false; + { + auto str = getFromSocket("/activewindow"); + const int SIZE = 200; + EXPECT_CONTAINS(str, "floating: 1"); + EXPECT_CONTAINS(str, std::format("size: {},{}", SIZE, SIZE)); + EXPECT_NOT_CONTAINS(str, "pinned: 1"); + } + + NLog::log("{}Killing all windows", Colors::YELLOW); + Tests::killAllWindows(); + + NLog::log("{}Expecting 0 windows", Colors::YELLOW); + EXPECT(Tests::windowCount(), 0); + return !ret; } -- cgit v1.2.3