Chris Jones
Chris Jones
I’m going to ping @asmagill in case there is a subtlety I’m missing here, but in the mean time you could explicitly call `collectgarbage()`
@asmagill yeah that does seem like a good idea, although istr the PR description suggested that was going to be the new behaviour?
It could well be being called by something internal, so I'll re-open the Issue for investigation. Thanks!
@luckman212 how often do you run into this? On one of the times you do hit it, could you capture the output of `hs.inspect(hs.window._timed_allWindows())` please?
Ok, well at least we know what the beachballing is being caused by, but it's kinda weird that there's always a slow responder, and different ones become slow as you...
@tmandry what happens if you call `:becomeMain()` first, on the window you want to focus?
hmm, never mind that question, `:focus()` calls `:becomeMain()`. In that case, I suspect a useful test would be to see if you can reproduce it with any other apps. Chrome...
I think this is an OS thing - it's activating the application and even though we've said we want to focus another window, it's flipping to the "nearest" window instead,...
@koekeishiya I would definitely be interested to learn about that! We do use private APIs where necessary, and our current minimum supported version is 10.12, but it's fine if we...
Edit: derp, I misread. Processes.h does indeed contain a definition that can be used to get the process serial number from a PID: `GetProcessForPID()` which is deprecated, unfortunately.