summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/workspaces.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprtester/src/tests/main/workspaces.cpp')
-rw-r--r--hyprtester/src/tests/main/workspaces.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/hyprtester/src/tests/main/workspaces.cpp b/hyprtester/src/tests/main/workspaces.cpp
index ff023ccf..122cd619 100644
--- a/hyprtester/src/tests/main/workspaces.cpp
+++ b/hyprtester/src/tests/main/workspaces.cpp
@@ -375,6 +375,24 @@ static void testMultimonFocus() {
Tests::killAllWindows();
}
+static void testDynamicWsEffects() {
+ // test dynamic workspace effects, they shouldn't lag
+
+ OK(getFromSocket("/dispatch workspace 69"));
+
+ Tests::spawnKitty("bitch");
+
+ OK(getFromSocket("r/keyword workspace 69,bordersize:20"));
+ OK(getFromSocket("r/keyword workspace 69,rounding:false"));
+
+ EXPECT(getFromSocket("/getprop class:bitch border_size"), "20");
+ EXPECT(getFromSocket("/getprop class:bitch rounding"), "0");
+
+ OK(getFromSocket("/reload"));
+
+ Tests::killAllWindows();
+}
+
static bool test() {
NLog::log("{}Testing workspaces", Colors::GREEN);
@@ -720,8 +738,8 @@ static bool test() {
OK(getFromSocket("/output remove HEADLESS-3"));
testSpecialWorkspaceFullscreen();
-
testAsymmetricGaps();
+ testDynamicWsEffects();
NLog::log("{}Expecting 0 windows", Colors::YELLOW);
EXPECT(Tests::windowCount(), 0);