Re: FVWM: Click-Hold & trackpad

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 15 May 2002 20:50:41 +0000

On 15 May 2002 14:10:44 -0400, Victor Eijkhout wrote:
>
> > > Mouse 0 T N MoveOrRaiseOrShade
> > > AddToFunc MoveOrRaiseOrShade
> > > + C Raise
> > > + H Move
> > > + D WindowShade
>
> > AddToFunc MoveOrRaiseOrShade
> > + M Move
>
> Interesting. That works, and is actually conceptually better. So what
> would be a legit application for click-hold?

Granted, usually you should just duplicate "H" and "M" lines, but you may
for example give different Maximize parameters on them. Another usage is
to do something on click and cancel the click action by specifying Nop on
"M" or/and "H". I.e. if you clicked by a mistake, you may just hold the
button or drag it to cancel the action.

  DestroyFunc MyMaximize
  AddToFunc MyMaximize
  + M Nop
  + H Maximize 0 95
  + C Maximize 100 95
  + D Maximize 100 100

  DestroyFunc MyMoveOrDeleteOrDestroy
  AddToFunc MyMoveOrDeleteOrDestroy
  + M Move
  + H Nop
  + C Delete
  + D Destroy

Also, you get a different feel on all these cases ("D" is like "C"):

  "M" specified
  "H" specified
  "C" specified
  "M" and "C" specified
  "H" and "C" specified
  "M" and "H" specified
  "M", "H" and "C" specified

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 Wed May 15 2002 - 15:51:52 BST

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