Re: FVWM: window buttons and button-focus

2010-03-29 Thread Thomas Adam
On Mon, Mar 29, 2010 at 02:22:50PM -0400, Emilie Ann Phillips wrote:
> On Mon, Mar 29, 2010 at 14:16, Thomas Adam  wrote:
> > On Mon, Mar 29, 2010 at 01:07:53PM -0500, Jonathan Kotta wrote:
> >> You can cancel the action by pressing escape before releasing the mouse 
> >> button.
> >
> > Really? ?There's no code anywhere to support this. ?What is it you're doing
> > which makes you think this is actually working?
> 
> 
> I can verify that when I click and hold the close button on a window,
> press escape, and then release, the window is not closed.
> 
> It does have the odd behavior that once I press escape, I get a busy
> cursor symbol.
> 
> This is with fvwm 2.5.24 running in a gnome session.

That's because the original reply looked as though it was the *function*
that supported this.  Yes, just binding a normal action and pressing escape
would work fine.

See the BusyCursor command if you want to change this.

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.



Re: FVWM: window buttons and button-focus

2010-03-29 Thread Emilie Ann Phillips
On Mon, Mar 29, 2010 at 14:16, Thomas Adam  wrote:
> On Mon, Mar 29, 2010 at 01:07:53PM -0500, Jonathan Kotta wrote:
>> You can cancel the action by pressing escape before releasing the mouse 
>> button.
>
> Really?  There's no code anywhere to support this.  What is it you're doing
> which makes you think this is actually working?


I can verify that when I click and hold the close button on a window,
press escape, and then release, the window is not closed.

It does have the odd behavior that once I press escape, I get a busy
cursor symbol.

This is with fvwm 2.5.24 running in a gnome session.

Emilie



Re: FVWM: window buttons and button-focus

2010-03-29 Thread Thomas Adam
On Mon, Mar 29, 2010 at 01:07:53PM -0500, Jonathan Kotta wrote:
> On Mon, Mar 29, 2010 at 4:04 AM, Thomas Adam  wrote:
> > On 29 March 2010 09:47, JUNG, Christian  
> > wrote:
> >> I've tried to use a function like that:
> >>
> >> DestroyFunc CloseWindow
> >> AddToFunc CloseWindow
> >> ?? ??+ C Close
> >>
> >> Mouse 1 2 A Function CloseWindow
> >>
> >> But this does not work exactly the way I would like to.
> >>
> >> I do not know if this is maybe a bug, but shouldn't the
> >> function be triggered only if the mouse pointer is over
> >> the button and the mouse key depressed? On buttons (e.g.
> >> FvwmForms) this works as I'd like.
> >>
> >> Does anyone has a solution for this?
> >
> > The pointer is grabbed at the time the function is invoked, and as
> > such the action would apply regardless. ??FVWM has no way of knowing
> > where the mouse is to correctly invoke the function as you're wanting
> > it.
> >
> > -- Thomas Adam
> >
> >
> 
> You can cancel the action by pressing escape before releasing the mouse 
> button.

Really?  There's no code anywhere to support this.  What is it you're doing
which makes you think this is actually working?

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.



Re: FVWM: window buttons and button-focus

2010-03-29 Thread Jonathan Kotta
On Mon, Mar 29, 2010 at 4:04 AM, Thomas Adam  wrote:
> On 29 March 2010 09:47, JUNG, Christian  wrote:
>> I've tried to use a function like that:
>>
>> DestroyFunc CloseWindow
>> AddToFunc CloseWindow
>>    + C Close
>>
>> Mouse 1 2 A Function CloseWindow
>>
>> But this does not work exactly the way I would like to.
>>
>> I do not know if this is maybe a bug, but shouldn't the
>> function be triggered only if the mouse pointer is over
>> the button and the mouse key depressed? On buttons (e.g.
>> FvwmForms) this works as I'd like.
>>
>> Does anyone has a solution for this?
>
> The pointer is grabbed at the time the function is invoked, and as
> such the action would apply regardless.  FVWM has no way of knowing
> where the mouse is to correctly invoke the function as you're wanting
> it.
>
> -- Thomas Adam
>
>

You can cancel the action by pressing escape before releasing the mouse button.

-- 
Thanks,

Jonathan Kotta

Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.



Re: FVWM: window buttons and button-focus

2010-03-29 Thread Thomas Adam
On 29 March 2010 09:47, JUNG, Christian  wrote:
> I've tried to use a function like that:
>
> DestroyFunc CloseWindow
> AddToFunc CloseWindow
>    + C Close
>
> Mouse 1 2 A Function CloseWindow
>
> But this does not work exactly the way I would like to.
>
> I do not know if this is maybe a bug, but shouldn't the
> function be triggered only if the mouse pointer is over
> the button and the mouse key depressed? On buttons (e.g.
> FvwmForms) this works as I'd like.
>
> Does anyone has a solution for this?

The pointer is grabbed at the time the function is invoked, and as
such the action would apply regardless.  FVWM has no way of knowing
where the mouse is to correctly invoke the function as you're wanting
it.

-- Thomas Adam



FVWM: window buttons and button-focus

2010-03-29 Thread JUNG, Christian
Hi,

I've tried to get following behaviour of the window-buttons 
but I can't find a satisfying solution. If a mouse button 
is pressed and held on one of the window buttons and the 
mouse pointer moved from the button, the according action 
should not be invoked. But if the mouse pointer moves back 
over the button it should.

Mouse 1 2 A Close

closes the window wherever the mouse pointer is.

I've tried to use a function like that:

DestroyFunc CloseWindow
AddToFunc CloseWindow
+ C Close

Mouse 1 2 A Function CloseWindow

But this does not work exactly the way I would like to. 

I do not know if this is maybe a bug, but shouldn't the 
function be triggered only if the mouse pointer is over 
the button and the mouse key depressed? On buttons (e.g. 
FvwmForms) this works as I'd like.

Does anyone has a solution for this?


bye
Chris

-- 
phone: +49 6898/10-4987
web  : www.saarstahl.de
mail : Hofstattstraße 106a
   D 66333 Voelklingen