summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/window.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-04-12 23:04:42 +0100
committerGitHub <noreply@github.com>2026-04-12 23:04:42 +0100
commit814337fdd2e0894c2451b258e605e9ab0b603b48 (patch)
tree02715e97c480185fc3a71b8c22f9cb0480c78aea /hyprtester/src/tests/main/window.cpp
parentd67c4e2b7f1e381b24becbb45b8e8471fcdda163 (diff)
keybinds: fix wrong space assignment in pin (#14061)
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
-rw-r--r--hyprtester/src/tests/main/window.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp
index 5c0fe2fe..32673d28 100644
--- a/hyprtester/src/tests/main/window.cpp
+++ b/hyprtester/src/tests/main/window.cpp
@@ -679,6 +679,24 @@ static bool testContentRules() {
return true;
}
+static bool test14038() {
+ NLog::log("{}Testing #14038 crash", Colors::YELLOW);
+
+ if (!spawnKitty("kitty_14038"))
+ return false;
+
+ OK(getFromSocket("/dispatch movetoworkspacesilent special:a,class:kitty_14038"));
+ OK(getFromSocket("/dispatch togglefloating class:kitty_14038"));
+ OK(getFromSocket("/dispatch pin class:kitty_14038"));
+ OK(getFromSocket("/dispatch togglefloating class:kitty_14038"));
+
+ // this should not crash hyprland. If we are alive, we good.
+
+ Tests::killAllWindows();
+ EXPECT(Tests::windowCount(), 0);
+ return true;
+}
+
static bool test() {
NLog::log("{}Testing windows", Colors::GREEN);
@@ -1144,6 +1162,7 @@ static bool test() {
testPinnedWorkspacesValid();
testWindowRuleWorkspaceEmpty();
testContentRules();
+ test14038();
NLog::log("{}Reloading config", Colors::YELLOW);
OK(getFromSocket("/reload"));