layout: include reserved area in float fit (#12289)

Ref https://github.com/basecamp/omarchy/issues/3327
This commit is contained in:
Vaxry 2025-11-13 00:08:04 +00:00 committed by GitHub
parent b77cbad502
commit 64ee8f8a72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 11 deletions

View file

@ -16,6 +16,7 @@ static void testFloatClamp() {
}
OK(getFromSocket("/keyword dwindle:force_split 2"));
OK(getFromSocket("/keyword monitor HEADLESS-2, addreserved, 0, 20, 0, 20"));
OK(getFromSocket("/dispatch focuswindow class:c"));
OK(getFromSocket("/dispatch setfloating class:c"));
OK(getFromSocket("/dispatch resizewindowpixel exact 1200 900,class:c"));
@ -24,7 +25,7 @@ static void testFloatClamp() {
{
auto str = getFromSocket("/clients");
EXPECT_CONTAINS(str, "at: 718,178");
EXPECT_CONTAINS(str, "at: 698,158");
EXPECT_CONTAINS(str, "size: 1200,900");
}