summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/workspaces.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-03 13:03:47 +0000
committerGitHub <noreply@github.com>2026-03-03 13:03:47 +0000
commit7299a3b0d5332da030e980e60b0ee35b93387cff (patch)
tree5f59a47fab260956037e89c39b04cc84dff44cb1 /hyprtester/src/tests/main/workspaces.cpp
parentb06a4b5e130710ee66d0a9b04780d99777d87b47 (diff)
hyprctl: fix workspace dynamic effect reloading (#13537)
ref https://github.com/hyprwm/Hyprland/discussions/12806
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);