! 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 !
Add a focus delay option to xfwm4


Description May THO 2007-03-06 19:56:35 CET
With "focus follows mouse" activated, this adds a delay before the window under the mouse receives focus.

For example you want to move the mouse cursor from a "Window A" to a "Window C" without activate focus on a "Window B" which is between A and C. With the delay focus option, if you move fast enough, B won't receive focus.

Concrete use: A and B are pictures opened in Gimp, and C is the layer tool window.
Comment 1 May THO 2007-03-06 19:59:12 CET
Created attachment 1019 
My first attempt

Developped from xfwm4-4.4.0 sources it adds :
- a focus delay setting in xfwm4_plugin
- the focus delay behaviour in the event manager
Comment 2 Olivier Fourdan editbugs 2007-03-07 21:41:12 CET
What if the window vanishes before the timeout?
Comment 3 Olivier Fourdan editbugs 2007-03-07 22:00:35 CET
(In reply to comment #2)
> What if the window vanishes before the timeout?

Should generate another enterNotify event that would trigger another focus transition. Needs testing though.

Patch applied to trunk.

Bug #2982

Reported by:
Reported on: 2007-03-06
Last modified on: 2020-05-21


Olivier Fourdan
CC List:
1 user



My first attempt (3.09 KB, patch)
2007-03-06 19:59 CET , May THO
no flags

Additional information