Re: FVWM: Windowmaker like resize with modifier?

From: <dominik.vogt_at_gmx.de>
Date: Mon, 24 Feb 2003 00:59:08 +0100

On Fri, Feb 21, 2003 at 10:48:00PM +0100, Gert Brinkmann wrote:
> Hello,
>
> i have the following command in my fvwm2.5 config:
>
> Mouse 3 W 4 resize
>
>
> This works fine. When pressing the left window key and the right mouse
> button on a window, i can resize the window.
>
> The thing that i do not like is, that i still have to move the mouse
> pointer to the edge or corner of the window. This edge/corner is then
> grapped by the mouse and i can resize the window. It would be much more
> comfortable if automatically *the* corner of the window is chosen to
> resize the window, that is *nearest* to the mouse pointer. Moving the
> mouse after the LeftWindowKey-Button3-Click will then move this corner.
> (If i am not wrong, this is done by windowmaker this way.)
>
> Is this possible in fvwm, too?

Well, I once thought this was a good idea and wrote the code, but
people hated it and I backed it out again. It is still in the
source files. In the file move_resize.c, around line 3057 in the
current CVS code we have

  #if 0
    tx = orig->width / 10 - 1;
    ty = orig->height / 10 - 1;
  #else
    tx = 0;
    ty = 0;
  #endif

Change the "#if 0" to "#if 1".

This warps the pointer to the nearest border if it is withoin 10%
of the window size from the outer inner of the border. If you want
it even more aggressive, change the "/ 10" to "/ 3".

When you try it out, please let me hear about your experience with
that feature. If it is useful after all, I can easily make it a
"Style" option.

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Sun Feb 23 2003 - 18:13:52 GMT

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