On 15 April 2010 03:54,  <des...@verizon.net> wrote:
> phutc...@windriver.com (Perry Hutchison) writes:
>
>> Once in a while I lose track of an icon.  I can find the window
>> in the window list, but clicking it there -- with any of the 3
>> mouse buttons and with or without Ctrl, Alt, or Shift -- raises
>> the window _and_ deiconifies it.  Ordinarily this is what I want,
>> but when I'm trying to track down a lost icon I really want to
>> raise and warp to the icon while leaving the window iconified.
>>
>> How would I go about programming one of the mouse buttons to do
>> this, without changing the behavior of the other buttons as would
>> happen if I redefined WindowListFunc?
>
> Nothing stopping you from creating another windowlist binding
> with a different function:
>
> Mouse 1 A S  WindowList Function WARPER
>
> DestroyFunc WARPER
> AddToFunc WARPER
> + I Focus
> + I WarpToWindow 50 50
>
> But I think you'll find that WarpToWindow
> is the only way to move the pointer and
> works on windows
> not icons so I don't think it's doable.

Slightly easier would be:

Mouse ... WindowList (Iconic) foo

DestroyFunc foo
AddToFunc foo
+ I WarpToWindow 5 5

You could then even go as far as putting the pointer in the middle of
the icon by simple mathematics involving $[ip.height] and $[ip.width]
if you wanted.

-- Thomas Adam

Reply via email to