Re: FVWM: how to make button unpressed while moving off cursor from it (fwd)

2008-11-06 Thread David Vilar
Forgot to include fvwm@fvwm.org, forwarding...

- Forwarded message from David Vilar <[EMAIL PROTECTED]> -

From: David Vilar <[EMAIL PROTECTED]>
Subject: Re: FVWM: how to make button unpressed while moving off cursor
from it
Date: Thu, 6 Nov 2008 10:36:08 +0100
To: "for.register for.register" <[EMAIL PROTECTED]>

On Fri, Oct 31, 2008 at 09:24:50PM +0800, for.register for.register wrote:
> Hi,
> 
> In fact,  I dont know how to say in in English,  Let me try:
> 
> For example , I want to close a window, I press and hold the left mouse
> key on the "close button" . And now I dont want to close the window
> so, I move off the cursor from the "close button", and release the mouse
> key. And I hope the window is still there unclosed. How the configure this?
> 
> Thanks in advance.
> 
> Walter

I think you are looking for this:

DestroyFunc OnlyIfClick
AddToFunc OnlyIfClick
+ "C" $*

And then for your button specification something like

Mouse 0 2 A OnlyIfClick Close

Greetings,

David

- End forwarded message -



Re: FVWM: how to make button unpressed while moving off cursor from it (fwd)

2008-11-06 Thread for.register for.register
On Thu, Nov 6, 2008 at 5:40 PM, David Vilar
<[EMAIL PROTECTED]> wrote:
> Forgot to include fvwm@fvwm.org, forwarding...
>
> - Forwarded message from David Vilar <[EMAIL PROTECTED]> -
>
> From: David Vilar <[EMAIL PROTECTED]>
> Subject: Re: FVWM: how to make button unpressed while moving off cursor
>from it
> Date: Thu, 6 Nov 2008 10:36:08 +0100
> To: "for.register for.register" <[EMAIL PROTECTED]>
>
> On Fri, Oct 31, 2008 at 09:24:50PM +0800, for.register for.register wrote:
>> Hi,
>>
>> In fact,  I dont know how to say in in English,  Let me try:
>>
>> For example , I want to close a window, I press and hold the left mouse
>> key on the "close button" . And now I dont want to close the window
>> so, I move off the cursor from the "close button", and release the mouse
>> key. And I hope the window is still there unclosed. How the configure this?
>>
>> Thanks in advance.
>>
>> Walter
>
> I think you are looking for this:
>
>DestroyFunc OnlyIfClick
>AddToFunc OnlyIfClick
>+ "C" $*
>
> And then for your button specification something like
>
>Mouse 0 2 A OnlyIfClick Close
>
> Greetings,
>
> David
>
> - End forwarded message -
>
>
Great!

This is exactly what I am looking for.

Thank you David.