Re: [As-users] change focus during key mapping

Sasha Vasko (sasha@aftercode.net)
Mon, 18 Jul 2005 17:04:34 -0500


FocusOnMap should now be fixed and actually work by warping pointer to 
the client it was set for.

We should release AS 2.1.2 shortly , like, maybe, tomorrow.

Sasha

Jason Day wrote:

> On Mon, Jul 11, 2005 at 09:17:32AM -0500, Sasha Vasko wrote:
> 
>>Try adding FocusOnMap attribute to rxvt style in the database.
>>Focusing new windows is considered a security risk, and is avoided by 
>>default.
> 
> 
> I do this for GRun, but I use a function to grab the focus.  In my feel
> file, I have this:
> 
> Key F2          A       M       Function "GRun"
> 
> and:
> 
> Function "GRun"
>         Exec            "I" grun &
>         Wait            "I" grun
>         WarpFore        "I" "grun" "grun"
> EndFunction
> 
> I assume this is more secure, since GRun doesn't automatically steal the
> focus, it only gets focus when invoked in this specific way (someone
> please correct me if I'm wrong).  Substitute "rxvt" for "grun" and it
> should do what you want.
> 
> 
>>Renegade Muskrat wrote:
>>
>>>First of all, i'm running AfterStep 2.00.04 on Debian Sarge. I am trying 
>>>to map some keys.
>>>
>>>I have the following line in my feel file:
>>>   Key r           A       3       Exec "rxvt" exec rxvt
>>>This causes rxvt to run when i press Windows+r. However, rxvt won't 
>>>necessarily have focus (i'm using SloppyFocus in my feel file). If 
>>>AfterStep places the rxvt window underneath wherever the mouse cursor is 
>>>at the time, then rxvt will have focus. Otherwise, rxvt will not have 
>>>focus. Is there a way to specify that rxvt should automatically receive 
>>>focus when it is run via the key mapping?
> 
> [snip]
_______________________________________________
As-users mailing list
As-users@afterstep.org
http://mail.afterstep.org/mailman/listinfo/as-users