summaryrefslogtreecommitdiff
path: root/src/display.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-08-10 05:27:17 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-10 05:27:17 +0000
commitf36d236a55a5ef2b8334be521d144e151e453c99 (patch)
treec862f15631da1f4c1c8d9844bb77af27497d3e2c /src/display.c
parent9a72bf18586c3d8074be3e357fbee8735af15e02 (diff)
downloadmetacity-f36d236a55a5ef2b8334be521d144e151e453c99.tar.gz
metacity-f36d236a55a5ef2b8334be521d144e151e453c99.tar.bz2
track time to avoid sending a deluge of move/resize requests, suggestion
2002-08-10 Havoc Pennington <hp@pobox.com> * src/window.c (update_resize): track time to avoid sending a deluge of move/resize requests, suggestion from xavier.bestel@free.fr bug #86830. Not really sure if this will make a difference or not. We'll see I guess. (update_move): do same on move though it seems less important here. * src/display.h (struct _MetaDisplay): store the last time we sent a move/resize event.
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c
index a47b2a4..7539fe7 100644
--- a/src/display.c
+++ b/src/display.c
@@ -2396,6 +2396,9 @@ meta_display_begin_grab_op (MetaDisplay *display,
display->grab_initial_root_y = root_y;
display->grab_current_root_x = root_x;
display->grab_current_root_y = root_y;
+ display->grab_last_moveresize_time.tv_sec = 0;
+ display->grab_last_moveresize_time.tv_usec = 0;
+
if (display->grab_window)
{
display->grab_initial_window_pos = display->grab_window->rect;