summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/window.cpp
diff options
context:
space:
mode:
authorEvilLary <EvilLary@proton.me>2025-11-25 02:48:10 +0300
committerGitHub <noreply@github.com>2025-11-24 23:48:10 +0000
commit475e87b35173ee1439035a072e7c70e94cb4ad56 (patch)
tree1210964494203d25b82d65e482b4090fb48c0f65 /hyprtester/src/tests/main/window.cpp
parent3d7ea9c02face0d6c5d9963030a06705268979ba (diff)
windowrules: fix persistent_size not applying (#12441)
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
-rw-r--r--hyprtester/src/tests/main/window.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp
index 982c0ef3..e7dfd38d 100644
--- a/hyprtester/src/tests/main/window.cpp
+++ b/hyprtester/src/tests/main/window.cpp
@@ -397,6 +397,34 @@ static bool test() {
OK(getFromSocket("/reload"));
Tests::killAllWindows();
+ // test persistent_size between floating window launches
+ OK(getFromSocket("/keyword windowrule match:class persistent_size_kitty, persistent_size true, float true"));
+
+ if (!spawnKitty("persistent_size_kitty"))
+ return false;
+
+ OK(getFromSocket("/dispatch resizeactive exact 600 400"))
+
+ {
+ auto str = getFromSocket("/activewindow");
+ EXPECT_CONTAINS(str, "size: 600,400");
+ EXPECT_CONTAINS(str, "floating: 1");
+ }
+
+ Tests::killAllWindows();
+
+ if (!spawnKitty("persistent_size_kitty"))
+ return false;
+
+ {
+ auto str = getFromSocket("/activewindow");
+ EXPECT_CONTAINS(str, "size: 600,400");
+ EXPECT_CONTAINS(str, "floating: 1");
+ }
+
+ OK(getFromSocket("/reload"));
+ Tests::killAllWindows();
+
OK(getFromSocket("/keyword general:border_size 0"));
OK(getFromSocket("/keyword windowrule match:float true, border_size 10"));