Rename calculatePrimaryStackLayout
It's the only layout, so just rename to calculateLayout()
This commit is contained in:
parent
c4da4ef30a
commit
433e377237
1 changed files with 2 additions and 2 deletions
|
|
@ -577,7 +577,7 @@ pub fn manage(output: *Output) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate layout before managing windows
|
// Calculate layout before managing windows
|
||||||
output.calculatePrimaryStackLayout();
|
output.calculateLayout();
|
||||||
var it = output.windows.iterator(.forward);
|
var it = output.windows.iterator(.forward);
|
||||||
while (it.next()) |window| {
|
while (it.next()) |window| {
|
||||||
window.manage();
|
window.manage();
|
||||||
|
|
@ -611,7 +611,7 @@ pub fn render(output: *Output) void {
|
||||||
/// Calculate primary/stack layout positions for all windows.
|
/// Calculate primary/stack layout positions for all windows.
|
||||||
/// - Single window: maximized
|
/// - Single window: maximized
|
||||||
/// - Multiple windows: stack (45% left, vertically tiled), primary (55% right)
|
/// - Multiple windows: stack (45% left, vertically tiled), primary (55% right)
|
||||||
fn calculatePrimaryStackLayout(output: *Output) void {
|
fn calculateLayout(output: *Output) void {
|
||||||
// Get a list of active windows
|
// Get a list of active windows
|
||||||
var active_list: DoublyLinkedList = .{};
|
var active_list: DoublyLinkedList = .{};
|
||||||
var active_count: u31 = 0;
|
var active_count: u31 = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue