Skip to content

Commit

Permalink
Slightly more correct stack of windows on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Nov 11, 2023
1 parent e139290 commit 3c340a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/refresh.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ private func putWindowsInDecks() {
TilingContainer(parent: root, adaptiveWeight: 1, root.orientation.opposite, .accordion, index: INDEX_BIND_LAST),
TilingContainer(parent: root, adaptiveWeight: 1, root.orientation.opposite, .accordion, index: INDEX_BIND_LAST),
]
for window in windows {
for window in windows.reversed() {
window.unbindFromParent()
window.bind(to: decks[deckIndex], adaptiveWeight: WEIGHT_AUTO, index: 0)
window.bind(to: decks[deckIndex], adaptiveWeight: WEIGHT_AUTO, index: INDEX_BIND_LAST)
deckIndex = (deckIndex + 1) % decks.count
}
case .accordion:
Expand Down

0 comments on commit 3c340a7

Please sign in to comment.