summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-03-28 13:33:43 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-03-28 13:33:43 +0000
commitf6bae8b5c21e2812f7e4bc2277c98b542b9ccfb3 (patch)
tree8fc82e4f1934f8ddb6e3b4c33a4dd0f9c23e0f31
parentb000ff5c1ba348afd699364d41950cbd8066bc9b (diff)
downloadmetacity-f6bae8b5c21e2812f7e4bc2277c98b542b9ccfb3.tar.gz
Only cap refresh rate when not using SYNC. Remove bogus
Fri Mar 28 14:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk> * src/window.c (update_resize): Only cap refresh rate when not using SYNC. Remove bogus update-if-we-moved-more-than-a-delta. * src/window.c (update_move): Don't cap refresh rate during moves. Remove bogus update-if-we-moved-more-than-a-delta.
-rw-r--r--ChangeLog11
-rw-r--r--src/window.c33
2 files changed, 12 insertions, 32 deletions
diff --git a/ChangeLog b/ChangeLog
index 988562f7..d9ab6c1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
+Fri Mar 28 14:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * src/window.c (update_resize): Only cap refresh rate when not
+ using SYNC. Remove bogus update-if-we-moved-more-than-a-delta.
+
+ * src/window.c (update_move): Don't cap refresh rate during
+ moves. Remove bogus update-if-we-moved-more-than-a-delta.
+
Sun Mar 23 23:10:42 2003 Soeren Sandmann <sandmann@daimi.au.dk>
- * src/display.c (meta_spew_event): just return if we are not verbose
+ * src/display.c (meta_spew_event): just return if we are not
+ verbose
2003-03-11 Havoc Pennington <hp@pobox.com>
diff --git a/src/window.c b/src/window.c
index 3a3ee4ef..0dffd64f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6219,7 +6219,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;
@@ -6237,19 +6236,6 @@ update_move (MetaWindow *window,
new_y = meta_window_find_nearest_horizontal_edge (window, new_y);
}
- /* 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);
}
@@ -6260,7 +6246,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;
@@ -6319,23 +6304,9 @@ 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
-#endif /* HAVE_XSYNC */
- resize_threshold = 30;
-
- if (!check_moveresize_frequency (window) &&
- ABS (dx) < resize_threshold && ABS (dy) < resize_threshold)
+ if (!check_moveresize_frequency (window))
return;
-
+
old = window->rect;
/* compute gravity of client during operation */