Closed dreeves closed 7 months ago
Oh! Maybe never mind. I don't know why the above didn't work but the following does seem to work:
git clone https://github.com/sbmpost/AutoRaise.git autoraise
cd autoraise
make CXXFLAGS="-DEXPERIMENTAL_FOCUS_FIRST"
./AutoRaise -pollMillis 50 -delay 11 -focusDelay 1
I spoke too soon. I repeated the above steps to make sure they work and now once again I'm getting delayed focus. This is driving me completely insane.
I'm continuing to experiment with variants and I think this is the real issue I'm having:
(This is all specific to the EXPERIMENTAL_FOCUS_FIRST flag, without which nothing I want to do works.)
If I do -pollMillis 50 -delay 0 -focusDelay 1
then everything works as expected: ~instant focus-follows-mouse with no autoraise. If I change that -delay 0
to -delay 11
for a 500ms delay on autoraise, everything works as expected when switching between apps, but not when switching between windows of the same app. For the latter, it ignores the focusDelay setting and delays both the focus and the autoraise by 500ms.
@dreeves
I noticed a couple of regressions with the latest Sonoma update. I am currently collecting them. Fixing them might not be trivial. Thanks for reporting as always.
@dreeves
everything works as expected when switching between apps, but not when switching between windows of the same app. For the latter, it ignores the focusDelay setting and delays both the focus and the autoraise by 500ms.
Might be a side effect of #188. Does downgrading to v4.7 work for you? Of course this is only to pinpoint the problem.
Ah, alas, I'm seeing the same behavior in 4.7.
(Side note that I persist in being confused by the overloading of "0" to mean "infinity". I probably suggested this before but I think "-1" would be a less confusing choice.)
I think I can better capture the bug report like so:
git clone https://github.com/sbmpost/AutoRaise.git autoraise
cd autoraise
make CXXFLAGS="-DEXPERIMENTAL_FOCUS_FIRST"
./AutoRaise -pollMillis 50 -delay 11 -focusDelay 1
Since the focusDelay is 1, I expect the focus to change within 50ms. The raising of the window I expect to be delayed by (11-1)*50
= 500ms.
Both the focus and the raise are delayed by 500ms.
@dreeves
Clear, let's try to get this fixed then.
@dreeves should be OK with latest master now.
Confirmed! You are my hero, seriously.
(And sorry for the convoluted bug report at first. Before I noticed the different-apps-vs-different-windows-in-the-same-app distinction I thought I was going crazy!)
PS: Any hope of the EXPERIMENTAL_FOCUS_FIRST feature graduating from compiler flag to proper setting?
@dreeves
Confirmed! You are my hero, seriously.
It is only because of the great feedback I am receiving that allows me to be one ;-)
(And sorry for the convoluted bug report at first. Before I noticed the different-apps-vs-different-windows-in-the-same-app distinction I thought I was going crazy!)
Thats fine, np
PS: Any hope of the EXPERIMENTAL_FOCUS_FIRST feature graduating from compiler flag to proper setting?
I think most people use focus first by now. It is indeed a bit strange that it is experimental. On the other hand, we have seen how Apple can break things easily. This makes me still hesitant to make it a proper setting. I will give it some thought though.
I had the following working in macOS Ventura:
But the AutoRaise version I was using in Ventura stopped working when I upgraded to Sonoma and I'm failing to find the right combination of compiler flags and settings to get this working again.
What I've tried so far:
make CXXFLAGS="-DEXPERIMENTAL_FOCUS_FIRST"
plus the following in ~/.AutoRaise: