From 9a3b37d5a8ef7495b3063a04c041996f7ff12109 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Fri, 30 Oct 2026 08:12:11 -0400 Subject: [PATCH] fix(hammerspoon): stabilize window placement timing --- home/dot_hammerspoon/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/dot_hammerspoon/init.lua b/home/dot_hammerspoon/init.lua index 841b443..0470689 100644 --- a/home/dot_hammerspoon/init.lua +++ b/home/dot_hammerspoon/init.lua @@ -152,9 +152,9 @@ end filter:subscribe({hs.window.filter.windowCreated, hs.window.filter.windowTitleChanged}, function(window) local id = window:id() if not id then return end - if pending[id] then pending[id]:stop() end - -- Wait for apps to finish their own initial resize and browser page loading. - pending[id] = hs.timer.doAfter(1, function() + if pending[id] then return end + -- Briefly let new windows settle without title changes delaying placement. + pending[id] = hs.timer.doAfter(0.15, function() pending[id] = nil if window:id() then place(window, false)