layout/windowTarget: don't use swar on maximized (#13501)

This commit is contained in:
Vaxry 2026-03-02 16:54:33 +00:00 committed by GitHub
parent 9f98f7440b
commit 5f650f8ed9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -28,6 +28,15 @@ static void swar() {
EXPECT_CONTAINS(str, "size: 1036,1036");
}
// don't use swar on maximized
OK(getFromSocket("/dispatch fullscreen 1"));
{
auto str = getFromSocket("/activewindow");
EXPECT_CONTAINS(str, "at: 22,22");
EXPECT_CONTAINS(str, "size: 1876,1036");
}
// clean up
NLog::log("{}Killing all windows", Colors::YELLOW);
Tests::killAllWindows();