[hammerspoon] use frontmost instead of focused window

Firefox was returning nil for focusedWindow sometimes, so trying
frontmostWindow instead to see if that'll work better.
pull/33/head
Alpha Chen 4 years ago
parent 9ddb0e80c9
commit 936da5727d

@ -9,7 +9,7 @@
:se [ 0.5 0.5 0.5 0.5 ]
:sw [ 0 0.5 0.5 0.5 ]
:max hs.layout.maximized}
move (fn [key] (let [win (hs.window.focusedWindow)
move (fn [key] (let [win (hs.window.frontmostWindow)
geo (. wm key)]
(win:move geo nil true)))]
(hs.hotkey.bind mash "h" (fn [] (move :left)))

Loading…
Cancel
Save