Hi,
still running my own patched version of 3.8.2, I gave 4.0.1 a try
and stepped on some focus problems, cause by f.warpto somehow.
I habe this key binding defined:
"C" = m:all : f.warpto "CONSOLE"
Alt+c will warp to this window, highlight the frame and set the keyboard
input. If there is another xterm "shell" overlapping this console xterm,
the focus should change when I move the mouse to "shell", but it doesn't.
The focus will stay there when I move the mouse to "shell". Border of
"console" stays highlighted, input is typed into console. Moving the
mouse to the root window (=background) will remove focus from "console"
and then it will be set to whatever window I move the mouse over.
I could solve this by:
"C" = m:all : f.function "warpto-console"
Function "warpto-console" {
f.warpto "CONSOLE"
f.unfocus
}
Warping to "console" with this function, the focus will be on
"console" and I can type into it, but it will change when I move
the mouse to the overlapping "shell" xterm.
Thus, it seems that f.warpto calls f.focus whith does "changing
the focus rule from pointer-driven if necessary", i.e. disabling
the focus being set my the mouse pointed. This can be seen with
the vivaldi bug, too
(see https://www.mail-archive.com/[email protected]/msg00458.html)
Using a warpto function to warp to the vivaldi window, context-
menus with right mouse click work fine, but the focus will
stay on the vivaldi window when moving the mouse onto another
over- (or under-)lapping window. Only entering the root window will
remove the focus (or warping away).
Using a warpto-vivaldi function with f.unfocus, the context-
menus no longer work with the right-click, but the focus
will change when moving to another window.
So in 3.8.2 f.warpto doesn't call f.focus, but 4.0.1 seems to do that.
While this fixes problems for chromium based browser, it destroys
behaviour for normal windows like xterms. Only moving the mouse onto
the root windows seems to restore pointer-driven focus.
So I wonder if it is possible to set the keyboard focus (like f.focus)
to a window when it get's the mouse focus, while ensuring that the focus
will still follow the mouse. As this works when moving onto the root
window, it must be possible somehow?!
cu,
Frank
--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *