Discussion:
[Fluxbox-users] Focus model
Fons Adriaensen
2016-10-21 18:55:15 UTC
Permalink
Hello all,

I recently tried out fluxbox on one machine, and after one day
switched to it on all of them. Just to say I'm *very* satisfied
with it.

There's just one small glitch. I've set up the focus model to
mouse focus. Works OK, except in one case: when switching
workspace the window the mouse is in doesn't get focus, I have
to click first. Not a big deal but I'm used to this happening
automagically (coming from Windowmaker).

Any way to fix this, or is it a feature ?

Ciao,
--
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
Thomas Lübking
2016-10-21 19:46:34 UTC
Permalink
Post by Fons Adriaensen
There's just one small glitch. I've set up the focus model to
mouse focus.
There're two - the "strict" one should likely do what you want?
Is there a sticky (on all desktops) window?

Cheers, it's written "Cheers" ;-)
Thomas
Fons Adriaensen
2016-10-21 19:51:30 UTC
Permalink
Post by Thomas Lübking
Post by Fons Adriaensen
There's just one small glitch. I've set up the focus model to
mouse focus.
There're two - the "strict" one should likely do what you want?
Is there a sticky (on all desktops) window?
Yes, two of them actually. They are the ones that get focus, even
if the mouse is on another one and they didn't have foces before
the workspace switch.

Ciao,
--
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
Thomas Lübking
2016-10-21 19:54:31 UTC
Permalink
Post by Fons Adriaensen
Yes, two of them actually. They are the ones that get focus, even
if the mouse is on another one and they didn't have foces before
the workspace switch.
Smells like https://sourceforge.net/p/fluxbox/bugs/1112/

Cheers,
Thomas
Fons Adriaensen
2016-10-21 20:08:14 UTC
Permalink
Post by Thomas Lübking
Post by Fons Adriaensen
Yes, two of them actually. They are the ones that get focus, even
if the mouse is on another one and they didn't have foces before
the workspace switch.
Smells like https://sourceforge.net/p/fluxbox/bugs/1112/
Indeed. And I confirm that this happens even when none of the
sticky windows was focussed before, on single-headed system.

As you suggest, the 'strict' version seems to fix this. Makes
me wonder what is the use case for the non-strict one...

Thanks for your response !
--
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
Thomas Lübking
2016-10-21 21:02:41 UTC
Permalink
Post by Fons Adriaensen
As you suggest, the 'strict' version seems to fix this. Makes
me wonder what is the use case for the non-strict one...
Basically it's "like click to focus but without explicitly having to click"
Actually not uncommon (eg. kwin has it as well)

Cheers,
Thomas



commit cdbaf5c04d07e8310c661e12e354724a619e5911
Author: Jim Ramsay
Date: Fri May 28 13:22:13 2010 -0400

Add new focus model: StrictMouseFocus

This is not actually implemented yet, but from now on, "MouseFocus" means:
Focus follows mouse only when you are moving the mouse, any EnterNotify events
caused by non-mouse operations (window closing, keycommands, changing
desktops) will *not* shift focus

And once fully-implemented, "StrictMouseFocus" will mean:
Focus follows mouse on every EnterNotify event (except when the "ClientMenu"
closes or during alt+tab window cycling)

Loading...