Re: FVWM: window buttons and button-focus
On 30 March 2010 14:12, JUNG, Christian christian.j...@saarstahl.com wrote: -Original Message- From: thomas.ada...@gmail.com [mailto:thomas.ada...@gmail.com] On Behalf Of Thomas Adam Sent: Monday, March 29, 2010 11:04 AM To: JUNG, Christian Cc: fvwm@fvwm.org Subject: Re: FVWM: window buttons and button-focus 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. Thanks for the reply Thomas. I'm curious: If the mouse button is pressed the function is entered and waits until the mouse button is released? I'll read the code... For the duration of the function, but it also depends on the action in the function (c.f. use of H -- for hold, as well as PipeRead). This is a deliberate thing -- you're free to change it, but I won't want to help you with the fallout. :P -- Thomas Adam
Re: FVWM: window buttons and button-focus
On 29 March 2010 09:47, JUNG, Christian christian.j...@saarstahl.com 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
Re: FVWM: window buttons and button-focus
On Mon, Mar 29, 2010 at 4:04 AM, Thomas Adam tho...@xteddy.org wrote: On 29 March 2010 09:47, JUNG, Christian christian.j...@saarstahl.com 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
On Mon, Mar 29, 2010 at 01:07:53PM -0500, Jonathan Kotta wrote: On Mon, Mar 29, 2010 at 4:04 AM, Thomas Adam tho...@xteddy.org wrote: On 29 March 2010 09:47, JUNG, Christian christian.j...@saarstahl.com 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.