Re: FVWM: Re: resizing windows

From: Tim Phipps <tim_at_quadrics.com>
Date: Fri, 11 Sep 1998 09:19:22 +0100

Michael Hucka wrote:
> What I find annoying is that after I press meta-shift-button-2 on a window, I
> cannot resize it until I slide the cursor to the edge of the window and
> actually make the window *larger*. Then I can strink it. I wish it were
> possible to avoid that, and start the resize operation right away, without
> first moving to the window edges.

You would have to patch the code to do this. You would also have to
come up with some way to let fvwm know which edges you want to move i.e.
there are eight different resize directions so you would need eight new
commands or a new command with fancy args.

There is something you can do that might help, it won't do exactly what
you want but it might make it bearable. If you bind Alt-keypad-5 to pop
up a menu you can have the menu give all eight choices hot-keyed from
numbers. Each menu choice would call a function that warps the mouse to
the appropriate edge or corner and then call resize. You would still
have to grow the window to get the resizing to start but at least the
mouse would be in the desired part of the window. The numbers for hot
keys will give you an intuitive key sequence where you hit alt-keypad-5
(in the middle of the pad) then the number key in the direction you want
to resize. Let me exemplify:

Key KP_5 WTSF M resize_menu #WTSF means anywhere but root or icon

AddToMenu resize_menu "Pick a resize direction" Title
+ "&7 Up Left" resize_dir 0 0
+ "&8 Up" resize_dir 50 0
+ "&9 Up Right" resize_dir 100 0
+ "&6 Right" resize_dir 100 50
+ "&3 Down Right" resize_dir 100 100
+ "&2 Down" resize_dir 50 100
+ "&1 Down Left" resize_dir 0 100
+ "&4 Left" resize_dir 0 50

AddToFunc resize_dir "I" WarpToWindow $0 $1
+ "I" Resize

Let me know if you think this is useful.

Cheers,
Tim.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Sep 11 1998 - 03:24:03 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST