sbmpost / AutoRaise

AutoRaise (and focus) a window when hovering over it with the mouse
GNU General Public License v3.0
1.42k stars 60 forks source link

Opinion/Suggestion: delay delays recognition to raise, not time to raise #215

Open davidsu-citylitics opened 1 month ago

davidsu-citylitics commented 1 month ago

It seems like given the delay , the window will raise after the delay

I found this a bit counter intuitive - I could have accidentally hovered over a window without intention to raise. But if the delay meant it would ignore my mouse for X ms but still focuses (given no focus delay), then its the best of both worlds:

Can now quickly focus and interact without raising -- but hover longer (delay as threshold) when committing to a raise

Hopefully this resonates with some users, thanks for the package!!

sbmpost commented 1 month ago

I double checked the code. Lets say you set a delay of 3. Then if within 3 time ticks the mouse moves, another 3 ticks must pass before raising. If however the mouse moves again within those last 3 time ticks, yet another 3 ticks must pass. And so on. In other words: as long as the mouse moves, the window won't be raised. If you combine this with a focusDelay setting of 1, then this should give you the ideal behavior.