On 24 Jun 2003 10:24:33 +0200, Gert Brinkmann wrote:
>
> because one thing that I am missing in fvwm is the functionality to
> resize a window by pressing ALT and clicking somewhere inside the window
> (e.g. KDE, windowmaker, icewm do have this feature) I am thinking about
> an implementation for this:
>
> There might be 2 possibilities to implement this feature:
>
> 1) in the source of fvwm (this seems to be very complicated if you did
> not work in the fvwm-source yet)
It is not very complicated, you should just divide a window to 9 parts
(actually 8) somehow and warp the pointer to the nearer border. But there
may be some unexpected issues.
If you do this, you may add an option to all Resize commands, like
WarpToBorder, that is respected in interactive resizes.
> 2) by using a configuration function in .fvwmrc. Something like this:
>
> AddToFunc MyResize
> # Find the nearest edge or corner of the current window
> # warp the mouse to this edge or corner
> # resize
> # when finished, warp back the mouse cursor to the inital position
> (maybe moved by the delta-value that you have moved the mouse while
> resizing)
>
> Is this possible? (I am using the CVS version of fvwm currently). Does
> somebody have an idea how to implement this, e.g. how to store the
> initial mouse coordinates? At the moment I could only implement point 3
> of the pseudo code: "resize" ;)
Theoretically it is possible. You have all information like $[w.x]
and $[w.width] to pass to your script that evaluates a new pointer
position. You may even restore the original $[pointer.x] position.
The only problem is that CursorMove does not understand absolute
coordinates for now. I think it is in my todo list (somewhere in the
very bottom). But if you use an external script anyway, you may evaluate
relative coordinates as well (relative to $[pointer.x]) for CursorMove.
Regards,
Mikhael.
--
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 Sat Jun 28 2003 - 08:42:05 BST