diff options
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")); |
