layout/master: new windows goes into master and gets focus
This commit is contained in:
+3
-4
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user