Subject: Incorrect assumptions in InteractiveMove

From: [email-masked]
Date: Tue, 23 Feb 1999 18:18:43 -0600 (CST)

Full_Name: Matthias Clasen
Version: 2.2
CVS_Date: 
OS: Redhat Linux 5.2
X_Server: XFree 3.3.2
Submission from: (NULL) (132.230.142.6)

There is some code in InteractiveMove in move.c which
assumes that it will only be called from a ButtonPress
or KeyPress event. This is not true for "Move" commands
sent from modules. 

Fix:

--- move.c.orig	Mon Feb  1 21:58:05 1999
+++ move.c	Mon Feb  1 21:57:41 1999
@@ -788,7 +788,7 @@
       XFlush(dpy);
     }
 
-  if (eventp->type != KeyPress)
+  if (eventp->type == ButtonPress)
     {
       DragX = eventp->xbutton.x_root;
       DragY = eventp->xbutton.y_root;

--
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]