Skip to content

Commit

Permalink
Merge pull request #51 from mogenson/pull-windows-in
Browse files Browse the repository at this point in the history
fit all windows within the bounds of the screen when quitting
  • Loading branch information
mogenson committed Sep 2, 2024
2 parents 171bae1 + dbf5b9d commit 02a9ec6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ function PaperWM:stop()
for _, watcher in pairs(ui_watchers) do watcher:stop() end
screen_watcher:stop()

-- fit all windows within the bounds of the screen
for _, window in ipairs(self.window_filter:getWindows()) do
window:setFrameInScreenBounds()
end

return self
end

Expand Down

0 comments on commit 02a9ec6

Please sign in to comment.