diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-02-28 23:06:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-28 23:06:27 +0000 |
| commit | 2928d6af0ad1fa9f950c4ea8394739a468b5e34f (patch) | |
| tree | f9c61ab220adadfebf5bb771da620b71abbaaea0 /hyprtester/src/tests/main/layout.cpp | |
| parent | 93aacfc0dcf4a575d7295728b729d3aafa088481 (diff) | |
layouts: fix crash on missed relayout updates (#13444)
Diffstat (limited to 'hyprtester/src/tests/main/layout.cpp')
| -rw-r--r-- | hyprtester/src/tests/main/layout.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/layout.cpp b/hyprtester/src/tests/main/layout.cpp index c0587f25..d40a5bc4 100644 --- a/hyprtester/src/tests/main/layout.cpp +++ b/hyprtester/src/tests/main/layout.cpp @@ -33,6 +33,19 @@ static void swar() { Tests::killAllWindows(); } +// Don't crash when focus after global geometry changes +static void testCrashOnGeomUpdate() { + Tests::spawnKitty(); + Tests::spawnKitty(); + Tests::spawnKitty(); + + // move the layout + OK(getFromSocket("/keyword monitor HEADLESS-2,1920x1080@60,1000x0,1")); + + // shouldnt crash + OK(getFromSocket("/dispatch movefocus r")); +} + static bool test() { NLog::log("{}Testing layout generic", Colors::GREEN); @@ -43,6 +56,8 @@ static bool test() { NLog::log("{}Testing `single_window_aspect_ratio`", Colors::GREEN); swar(); + testCrashOnGeomUpdate(); + // clean up NLog::log("Cleaning up", Colors::YELLOW); OK(getFromSocket("/dispatch workspace 1")); |
