Subject: cursor falls off title bar when moving windows

From: [email-masked]
Date: Sun, 24 Oct 1999 21:14:59 -0500 (CDT)

Full_Name: Ben Ross
Version: 2.2.2
CVS_Date: 
OS: Linux 2.0.36/2.2.12
X_Server: XFree86 3.3.5/3.3.1
Submission from: (NULL) (203.102.212.6)

This bug wasn't evident in fvwm-2.0.45.
When a window is moved, the cursor moves off the title bar (or wherever
it was originally when the window was moved) before the window starts
moving i.e. the cursor ends up somewhere other than where it
was first clicked. For some reason this is most noticable when moving the
window vertically.
I tracked the problem down to the function InteractiveMove() in move.c
A fix involves replacing the following code:

  if (eventp->type == ButtonPress)
    {
      DragX = eventp->xbutton.x_root;
      DragY = eventp->xbutton.y_root;
    }
  else
    XQueryPointer(dpy, Scr.Root, &JunkRoot, &JunkChild, &DragX, &DragY,
                  &JunkX, &JunkY, &JunkMask);

with:
  
  DragX = eventp->xbutton.x_root;
  DragY = eventp->xbutton.y_root;

However, I'm not sure how valid the check for the ButtonPress event is
and whether this fix breaks something else.

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