Re: FVWM: NearestEdgeResizing

From: Gert Brinkmann <g111_at_netcologne.de>
Date: Mon, 03 May 2004 11:03:34 +0200

Mikhael Goikhman wrote:

> I hope you understand that "H" means holding the mouse as opposed to "C",
> "M", "D" and "I", it is activated after ClickTime milliseconds.

I always thought "I" means "immediately" after mouse press (the man page
says "is executed as soon as the function is invoked". This seems not to
be true, is it?).


>>No, I do not like the delay, so I am using the following wrapper
>>function. (hmm, as I am writing this mail I ask myself if it is possible
>>to include the clicktime-lines in MyResize without another wrapper
>>function? I will test this)
>
> Don't do this. This ClickTime affects the whole function execution,
> so changing it in the same function may work if it is done using "I",
> but it may as well fail or work strangely. The actual behaviour is not
> defined well and may stop working in the future. Use a wrapper function.

Well, it works in 2.5.10. The first command is "+ I ClickTime 0" all the
other commans "+ H ...", including the "+ H Clicktime" as the last
command. I think this is a defined behaviour. But ok, if it is more safe
I will use a wrapper-function.

> The "better" way is to patch move_resize.c to allow another resize
option.

I did take a look to this C-function, but because I do not know anything
about the fvwm-code (which global variables do exist, where do I get the
parameters from, which function is to be called for some functionality,
etc.) and because I cannot find enough time, I have to wait until
someone else will implement this. ;|

If I implemented it I had chosen a 3x3-field as you mentioned. Because
one might only want to resize a window at the border I had created two
parameters: "Resize NearestEdge NearestCorner". The first one only
allows to grab an edge for resizing the window in only one direction.

But let's wait if and when someone will do this and how.

Ciao,

Gert



--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon May 03 2004 - 04:06:24 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST