3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-04 14:35:43 +00:00

workspaces: fix persistence with no monitor specified (#11807)

This commit is contained in:
Vaxry
2025-09-23 21:08:30 +02:00
committed by GitHub
parent 31bd9ec417
commit ec9a72d9fb
2 changed files with 15 additions and 2 deletions

View File

@ -27,6 +27,16 @@ static bool test() {
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
OK(getFromSocket("/dispatch workspace 1"));
NLog::log("{}Checking persistent no-mon", Colors::YELLOW);
OK(getFromSocket("r/keyword workspace 966,persistent:1"));
{
auto str = getFromSocket("/workspaces");
EXPECT_CONTAINS(str, "workspace ID 966 (966)");
}
OK(getFromSocket("/reload"));
NLog::log("{}Spawning kittyProc on ws 1", Colors::YELLOW);
auto kittyProcA = Tests::spawnKitty();