From 814337fdd2e0894c2451b258e605e9ab0b603b48 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:04:42 +0100 Subject: keybinds: fix wrong space assignment in pin (#14061) --- hyprtester/src/tests/main/window.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'hyprtester/src/tests/main/window.cpp') 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")); -- cgit v1.2.3