Subject: A minor patch for mouse sroke

From: Ke Huang <[email-masked]>
Date: Mon, 7 Jun 1999 23:26:38 -0500 (CDT)

Here is a pretty minor patch to optimize mouse stroke recognition a little
better.

---------------------BEGIN PATCH---------------------------------
*** fvwm/libs/Bindings.c	Sun Jun  6 12:23:32 1999
--- fvwm-test/libs/Bindings.c	Mon Jun  7 23:03:37 1999
***************
*** 405,411 ****
--- 405,416 ----
    dead_modifiers &= ~(binding->Modifier & dead_modifiers); /* dje */
  #endif
  
+ #ifdef HAVE_STROKE
+   if((binding->Context & contexts) && 
+ 	 ((binding->type == MOUSE_BINDING) || (binding->type == STROKE_BINDING)))
+ #else /* NO STROKE */
    if((binding->Context & contexts) && (binding->type == MOUSE_BINDING))
+ #endif /* HAVE_STROKE */
      {
        int bmin = 1;
        int bmax = 3;
*** fvwm/fvwm/fvwm.c	Mon Jun  7 20:28:04 1999
--- fvwm-test/fvwm/fvwm.c	Mon Jun  7 21:25:01 1999
***************
*** 521,529 ****
                 SubstructureNotifyMask|
  	       ColormapChangeMask|
  #ifdef HAVE_STROKE
- 	           PointerMotionMask |
- 		       Button2MotionMask |
  		       ButtonMotionMask |
  #endif /* HAVE_STROKE */
                 ButtonPressMask | ButtonReleaseMask );
    XSync(dpy, 0);
--- 521,530 ----
                 SubstructureNotifyMask|
  	       ColormapChangeMask|
  #ifdef HAVE_STROKE
  		       ButtonMotionMask |
+ 		       Button1MotionMask |
+ 		       Button2MotionMask |
+ 		       Button3MotionMask |
  #endif /* HAVE_STROKE */
                 ButtonPressMask | ButtonReleaseMask );
    XSync(dpy, 0);
*** fvwm/fvwm/fvwm2.1	Mon Jun  7 20:28:05 1999
--- fvwm-test/fvwm/fvwm2.1	Mon Jun  7 23:11:20 1999
***************
*** 2908,2914 ****
  Because of the default button menu in fvwm, you may need to dis-associate
  a mouse button binding before using the stroke
  .EX
! Mouse 2 A A -
  .EE
  
  Also, you can still use Stroke sequence 0 to simulate a click
--- 2908,2914 ----
  Because of the default button menu in fvwm, you may need to dis-associate
  a mouse button binding before using the stroke
  .EX
! Mouse 2 R A -
  .EE
  
  Also, you can still use Stroke sequence 0 to simulate a click
-------------------------END----------------------------------------

-- Ke Huang
------------------------------------------
e-mail:  [email-masked]  (preferred)
         [email-masked]

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]