! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Allow focus following mouse with no delay
Status:
RESOLVED: WONTFIX
Priority:
Very Low
Severity:
enhancement

Comments

Description Cameron McCormack 2009-04-02 02:31:39 CEST
It should be possible to enable focus-follows-mouse with no delay between the mouse entering a window and that window being focussed.  The UI currently imposes a minimum 5ms delay.
Comment 1 Cameron McCormack 2009-04-02 02:33:09 CEST
Created attachment 2266 
Allow setting 0ms focus delay

This patch just changes the range of the focus delay slider in the UI so that its minimum is 0ms, and ensures that the value selected here isn't clamped to a minimum of 5ms.
Comment 2 Olivier Fourdan editbugs 2009-04-04 07:57:15 CEST
(In reply to comment #1)
> Created an attachment (id=2266) [details]
> Allow setting 0ms focus delay
> 
> This patch just changes the range of the focus delay slider in the UI so that
> its minimum is 0ms, and ensures that the value selected here isn't clamped to a
> minimum of 5ms.

No, 5 is fine, 0 would not bring anything perceivable.
Comment 3 Cameron McCormack 2009-04-04 08:29:23 CEST
I would very much like to have no focus delay.  How about leaving the minimum value for the delay at 5ms, but having an additional option to disable the delay altogether?
Comment 4 Olivier Fourdan editbugs 2009-04-04 08:56:04 CEST
(In reply to comment #3)
> I would very much like to have no focus delay.  How about leaving the minimum
> value for the delay at 5ms, but having an additional option to disable the
> delay altogether?

No, I am against adding yet another option for that. Can you elaborate on why you need 0, how do you see/feel the difference between 0ms and 5ms? Any real life use case to backup that need?
Comment 5 Cameron McCormack 2009-04-04 11:57:36 CEST
(In reply to comment #4)
> No, I am against adding yet another option for that. Can you elaborate on why
> you need 0, how do you see/feel the difference between 0ms and 5ms? Any real
> life use case to backup that need?

I find it a little disconcerting having the small delay between moving the mouse over a window and it becoming focussed; it means I need to consciously wait for the window to become focussed before typing.  Often I like to flick the mouse between xterms and type things.  While it may not be a practical problem, it is a little jarring.

(I think the actual delay turns out to be greater than 5ms, despite the slider being set down to its minimum.  Maybe there's some intrinsic minimum that I'm reaching?  5ms should be nearly imperceptible, I suppose.)

I'm happy to provide a patch if necessary.
Comment 6 g365885 2009-07-04 20:01:43 CEST
I agree it should be possible to make it have no delay. Xfce is supposed to be fast so why waste 5ms? Considering how much effort some people put trying to make their PCs faster (overclocking etc) then wasting 5ms for no good reason seems rediculous.
Comment 7 Steve Dodier-Lazaro editbugs 2015-02-07 20:04:50 CET
The minimum time it takes for a human being to perceive and process a visual stimuli is in the range of 15 milliseconds at least. A 5ms delay should not be noticeable.

As explained in the discussions at http://stackoverflow.com/questions/7882713/can-a-human-eye-perceive-a-10-milliseconds-latency-in-image-load-time a delay may at worse make a visual change appear a frame later, i.e. 17ms later for 60 FPS than the original action causing it.

Now onto what's actually happening with the focus on mouse hover. It takes an average of 300ms, when fully focused, to press a keyboard key after a very visible visual stimuli. That's if you're really trying to go fast. So, missing a frame is no big deal at all because it takes you 15 times as long to start typing anyway. The performance gain from removing the 5ms delay would be unsignificant, even if you were to perceive that the UI is more responsive.

I could do tests to check if people actually find Xfce snappier without the 5ms delay, in which case it might be worth removing it. But it won't actually make your use of Xfce any faster.
Comment 8 Steve Dodier-Lazaro editbugs 2015-02-07 20:05:42 CET
(see http://cognitivefun.net/stat/1 for proof of stimuli processing delays)
Comment 9 Olivier Fourdan editbugs 2015-02-07 21:14:30 CET
As far as I am concerned, this is wontfix.
Comment 10 Steve Dodier-Lazaro editbugs 2015-02-07 23:32:33 CET
WONTFIX as the inconvenience of the 5ms delay does not warrant a change to the codebase.
Comment 11 Cameron McCormack 2015-02-08 01:25:49 CET
I'm no longer an xfce user, so WONTFIX is fine by me.

Bug #5179

Reported by:
Cameron McCormack
Reported on: 2009-04-02
Last modified on: 2015-02-08

People

Assignee:
Olivier Fourdan
CC List:
2 users

Version

Version:
4.10.1

Attachments

Allow setting 0ms focus delay (1.43 KB, patch)
2009-04-02 02:33 CEST , Cameron McCormack
no flags

Additional information