? blah.patch
? cff.patch
? crack.patch
? delta.patch
Index: window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.271
diff -u -p -u -r1.271 window.c
--- window.c	17 Mar 2003 06:36:39 -0000	1.271
+++ window.c	27 Mar 2003 23:09:00 -0000
@@ -5628,7 +5628,6 @@ update_move (MetaWindow  *window,
 {
   int dx, dy;
   int new_x, new_y;
-  int move_threshold;
 
   window->display->grab_latest_motion_x = x;
   window->display->grab_latest_motion_y = y;
@@ -5649,16 +5648,7 @@ update_move (MetaWindow  *window,
   /* Force a move regardless of time if a certain delta is exceeded,
    * so we don't get too out of sync with reality when dropping frames
    */
-  /* FIXME this delta is all wrong, as it's absolute since
-   * the grab started. We want some sort of delta since
-   * we last sent a configure or something.
-   */
-  move_threshold = 30;
-  
-  if (!check_moveresize_frequency (window) &&
-      ABS (dx) < move_threshold && ABS (dy) < move_threshold)
-    return;
-  
+
   meta_window_move (window, TRUE, new_x, new_y);
 }
 
@@ -5669,7 +5659,6 @@ update_resize (MetaWindow *window,
   int dx, dy;
   int new_w, new_h;
   int gravity;
-  int resize_threshold;
   MetaRectangle old;
   
   window->display->grab_latest_motion_x = x;
@@ -5728,23 +5717,13 @@ update_resize (MetaWindow *window,
       break;
     }
 
-  /* Force a move regardless of time if a certain delta
-   * is exceeded
-   * FIXME this delta is all wrong, as it's absolute since
-   * the grab started. We want some sort of delta since
-   * we last sent a configure or something.
-   */
 #ifdef HAVE_XSYNC
-  if (window->display->grab_update_alarm != None)
-    resize_threshold = 5000; /* disable */
-  else
+  if (window->display->grab_update_alarm == None)
 #endif /* HAVE_XSYNC */
-    resize_threshold = 30;
-
-  if (!check_moveresize_frequency (window) &&
-      ABS (dx) < resize_threshold && ABS (dy) < resize_threshold)
-    return;
+    if (!check_moveresize_frequency (window))
+      return;
 
+  
   old = window->rect;
   
   /* compute gravity of client during operation */
@@ -5871,7 +5850,7 @@ meta_window_handle_mouse_grab_op_event (
         case META_GRAB_OP_KEYBOARD_RESIZING_NE:
         case META_GRAB_OP_KEYBOARD_RESIZING_SW:
         case META_GRAB_OP_KEYBOARD_RESIZING_NW:
-          clear_moveresize_time (window); /* force update to do something */
+	  clear_moveresize_time (window); /* force update to do something */
 
           /* no pointer round trip here, to keep in sync */
           update_resize (window,
@@ -5890,14 +5869,14 @@ meta_window_handle_mouse_grab_op_event (
     case ButtonRelease:      
       if (meta_grab_op_is_moving (window->display->grab_op))
         {
-          clear_moveresize_time (window);
+	  clear_moveresize_time (window);
           if (event->xbutton.root == window->screen->xroot)
             update_move (window, event->xbutton.state,
                          event->xbutton.x_root, event->xbutton.y_root);
         }
       else if (meta_grab_op_is_resizing (window->display->grab_op))
         {
-          clear_moveresize_time (window);
+	  clear_moveresize_time (window);
           if (event->xbutton.root == window->screen->xroot)
             update_resize (window, event->xbutton.x_root, event->xbutton.y_root);
         }
