Re: FVWM: raising an icon via the window list

2010-05-11 Thread Thomas Adam
On 9 May 2010 21:39, David Chanters  wrote:
> hi
>
> can i ask how this is easier than the other suggestion? is this more
> efficient with fvwm?

Not sure what you mean here - it's just a note that you can warp the
pointer to an icon by using simple mathematics with one of FVWM's own
internal variables.

-- Thomas Adam



Re: FVWM: raising an icon via the window list

2010-04-15 Thread Thomas Adam
On 15 April 2010 03:54,   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



Re: FVWM: raising an icon via the window list

2010-04-14 Thread despen
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.