layout/master: new windows goes into master and gets focus

This commit is contained in:
2026-07-26 21:15:05 +02:00
parent fff3a5e734
commit 4c80b60b93
4 changed files with 41 additions and 30 deletions
+3 -4
View File
@@ -102,13 +102,12 @@ test "monocle gives every window the full area and reports stacked" {
for (cells) |cell| try testing.expectEqual(area, cell);
}
test "stacks agrees with what arrange reports" {
test "master does not report stacked" {
var cells: [2]Box = undefined;
var p = params(1, 0.55);
p.tabbar_height = 22;
for ([_]layout.Layout{ .master, .monocle, .tabbed }) |mode| {
try testing.expectEqual(layout.arrange(mode, p, &cells).stacked, layout.stacks(mode));
}
try testing.expect(!layout.arrange(.master, p, &cells).stacked);
}
test "tabbed reserves the bar strip above the windows" {