Skip to content

Commit

Permalink
Merge pull request #44 from mogenson/move-window-to-space-with-window
Browse files Browse the repository at this point in the history
Add a window parameter to moveWindowToSpace()
  • Loading branch information
mogenson committed May 10, 2024
2 parents 9bdfc0e + b01a9b9 commit 2584835
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,9 @@ end

---move focused window to a Mission Control space
---@param index number ID for space
function PaperWM:moveWindowToSpace(index)
local focused_window = Window.focusedWindow()
---@param window Window|nil optional window to move
function PaperWM:moveWindowToSpace(index, window)
local focused_window = window or Window.focusedWindow()
if not focused_window then
self.logger.d("focused window not found")
return
Expand Down

0 comments on commit 2584835

Please sign in to comment.