summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-12-06 11:32:01 +0000
committerVaxry <vaxry@vaxry.net>2025-12-06 11:32:01 +0000
commitd3c9c54b79c7c6191c2d9c87a6a3e72b59169361 (patch)
tree2dba3bad4bf1dbfb16b433a742cabec77793c08c /hyprtester/src/tests/main/window.cpp
parentcedadf4fdc63e04ab41cab00c0417ba248ce748e (diff)
layouts: fix maximize size
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
-rw-r--r--hyprtester/src/tests/main/window.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp
index 5fa8b58f..634f9790 100644
--- a/hyprtester/src/tests/main/window.cpp
+++ b/hyprtester/src/tests/main/window.cpp
@@ -344,6 +344,35 @@ static bool testWindowFocusOnFullscreenConflict() {
return true;
}
+static void testMaximizeSize() {
+ NLog::log("{}Testing maximize size", Colors::GREEN);
+
+ EXPECT(spawnKitty("kitty_A"), true);
+
+ // check kitty properties. Maximizing shouldnt change its size
+ {
+ auto str = getFromSocket("/clients");
+ EXPECT(str.contains("at: 22,22"), true);
+ EXPECT(str.contains("size: 1876,1036"), true);
+ EXPECT(str.contains("fullscreen: 0"), true);
+ }
+
+ OK(getFromSocket("/dispatch fullscreen 1"));
+
+ {
+ auto str = getFromSocket("/clients");
+ EXPECT(str.contains("at: 22,22"), true);
+ EXPECT(str.contains("size: 1876,1036"), true);
+ EXPECT(str.contains("fullscreen: 0"), true);
+ }
+
+ NLog::log("{}Killing all windows", Colors::YELLOW);
+ Tests::killAllWindows();
+
+ NLog::log("{}Expecting 0 windows", Colors::YELLOW);
+ EXPECT(Tests::windowCount(), 0);
+}
+
static bool test() {
NLog::log("{}Testing windows", Colors::GREEN);
@@ -714,6 +743,8 @@ static bool test() {
testGroupRules();
+ testMaximizeSize();
+
NLog::log("{}Reloading config", Colors::YELLOW);
OK(getFromSocket("/reload"));