Subject: FVWM: Patch for FVWM 2.2 to fix clicks

From: Dan D Niles <[email-masked]>
Date: Wed, 10 Mar 1999 11:25:59 -0600

Here is the fix I promised.  Please disregard the previous patch, as
this one replaces that one.  If you already applied the other one,
un-apply it.

Dan D Niles

----------------------  fvwm-2.2.click.patch -------------------------
--- fvwm/complex.c.orig	Tue Mar  9 12:04:57 1999
+++ fvwm/complex.c	Wed Mar 10 11:16:37 1999
@@ -157,6 +157,9 @@
   XQueryPointer( dpy, Scr.Root, &JunkRoot, &JunkChild,
 		&x,&y,&JunkX, &JunkY, &JunkMask);
 
+  /* Take the click which started this fuction off the
+   * Event queue.  -DDN- Dan D Niles [email-masked] */
+  XCheckMaskEvent(dpy, ButtonPressMask, &d);
 
   /* Wait and see if we have a click, or a move */
   /* wait 100 msec, see if the user releases the button */
@@ -169,12 +172,6 @@
   /* If it was a click, wait to see if its a double click */
   if((HaveDoubleClick) && (type == CLICK) &&
      (IsClick(x,y,ButtonPressMask, &d)))
-    {
-      type = ONE_AND_A_HALF_CLICKS;
-      ev = &d;
-    }
-  if((HaveDoubleClick) && (type == ONE_AND_A_HALF_CLICKS) &&
-     (IsClick(x,y,ButtonReleaseMask, &d)))
     {
       type = DOUBLE_CLICK;
       ev = &d;
--
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 [email-masked].
To report problems, send mail to [email-masked].