Subject: move.c.patch to fix move from menu

From: Tim Phipps <[email-masked]>
Date: Wed, 30 Sep 1998 12:57:07 +0100

Hi all,
	move.c has a funny bit of code that I think was put in to make moves
that are started by a menu selection from a titlebar button work
better.  It makes moves invoked from a menu not brought up from a
titlebar button get the wrong offset.  This patch just undoes the funny
bit of code.  If anyone really attached to the funny bit?

Cheers,
Tim

*** move.c.orig	Wed Sep 30 11:41:32 1998
--- move.c	Wed Sep 30 12:45:28 1998
***************
*** 546,556 ****
  
    DragX = eventp->xbutton.x_root;
    DragY = eventp->xbutton.y_root;
!   /* If this is left commented out, then the move starts from the button press 
!    * location instead of the current location, which seems to be an
!    * improvement */
!   /*  XQueryPointer(dpy, Scr.Root, &JunkRoot, &JunkChild,
!       &DragX, &DragY,	&JunkX, &JunkY, &JunkMask);*/
  
    if(!GrabEm(MOVE))
      {
--- 546,555 ----
  
    DragX = eventp->xbutton.x_root;
    DragY = eventp->xbutton.y_root;
!   /* If this is commented out, then the move starts from the button press 
!    * location instead of the current location */
!   XQueryPointer(dpy, Scr.Root, &JunkRoot, &JunkChild,
!       &DragX, &DragY,	&JunkX, &JunkY, &JunkMask);
  
    if(!GrabEm(MOVE))
      {