diff options
| -rw-r--r-- | window_layout.lua | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/window_layout.lua b/window_layout.lua index f8d201a..e32f37e 100644 --- a/window_layout.lua +++ b/window_layout.lua @@ -36,7 +36,11 @@ local function window_positions_restore()  	local screen = hs.screen.primaryScreen():id()  	for id, frame in pairs(window_positions[screen]) do -		hs.window.get(id):setFrame(frame) +		local window = hs.window.get(id) + +		if window then +			window:setFrame(frame) +		end  	end  end | 
