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.
This commit is contained in:
Soeren Sandmann 2003-03-28 13:11:24 +00:00 committed by Søren Sandmann Pedersen
parent 04fcad7c13
commit 708a86cfee
2 changed files with 10 additions and 31 deletions

View File

@ -1,3 +1,11 @@
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.
2003-03-26 Havoc Pennington <hp@pobox.com> 2003-03-26 Havoc Pennington <hp@pobox.com>
* NEWS: update * NEWS: update

View File

@ -5628,7 +5628,6 @@ update_move (MetaWindow *window,
{ {
int dx, dy; int dx, dy;
int new_x, new_y; int new_x, new_y;
int move_threshold;
window->display->grab_latest_motion_x = x; window->display->grab_latest_motion_x = x;
window->display->grab_latest_motion_y = y; window->display->grab_latest_motion_y = y;
@ -5646,19 +5645,6 @@ update_move (MetaWindow *window,
new_y = meta_window_find_nearest_horizontal_edge (window, new_y); 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); meta_window_move (window, TRUE, new_x, new_y);
} }
@ -5669,7 +5655,6 @@ update_resize (MetaWindow *window,
int dx, dy; int dx, dy;
int new_w, new_h; int new_w, new_h;
int gravity; int gravity;
int resize_threshold;
MetaRectangle old; MetaRectangle old;
window->display->grab_latest_motion_x = x; window->display->grab_latest_motion_x = x;
@ -5728,21 +5713,7 @@ update_resize (MetaWindow *window,
break; break;
} }
/* Force a move regardless of time if a certain delta if (!check_moveresize_frequency (window))
* 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)
return; return;
old = window->rect; old = window->rect;