Am 24.02.2015 um 22:16 schrieb Rhialto:
On Tue 24 Feb 2015 at 15:01:48 +0100, Alexander Klein wrote:
Another thing that I never managed to get to work is the
combination of ClickToFocus and warpring. I even tried a few
user-defined functions in order to force the keyboard focus to be
in the window that f.warpring cycled to, but this never quite
worked, unless the "focus follows mouse" model was used.
A quick look at the code shows nothing that pretends to focus the
target window. Only to raise it. I'd say it makes sense to focus it
as well, in all focus models. I suppose that is an easy enough change
to make, unless there is some drawback that I'm missing?
Hello,
I finally got around to fixing this with an additional line in menus.c,
see the attached patch. Having played with it for a while, it seems to
work as intended, at least on FreeBSD.
Best regards,
Alexander
--
Alexander Klein
Physiologisches Institut der JLU-Gießen
Aulweg 129
35392 Gießen
http://www.med.uni-giessen.de/physio/
--- menus.c.orig 2015-10-09 09:27:58 UTC
+++ menus.c
@@ -4714,6 +4714,7 @@ void WarpAlongRing (XButtonEvent *ev, Bo
Scr->RingLeader = r;
WarpToWindow (r, 1);
+ SetFocus (r, LastTimestamp());
if (p && p->mapped &&
(t = GetTwmWindow(ev->window)) &&