Skip to content

Commit

Permalink
🐞 Fix disabling padding not working
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Jun 27, 2024
1 parent 0e9fa06 commit fd2eb55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Loop/Window Management/WindowEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ enum WindowEngine {
return
}

let bounds = action.direction.willMove ? .zero : Defaults[.padding].apply(on: screen.safeScreenFrame)
let screenFrame = action.direction.willMove ? .zero : screen.safeScreenFrame

let bounds = if Defaults[.enablePadding] {
Defaults[.padding].apply(on: screenFrame)
} else {
screenFrame
}

window.setFrame(
targetFrame,
Expand Down

0 comments on commit fd2eb55

Please sign in to comment.