Index: src/vte.c
===================================================================
RCS file: /cvs/gnome/vte/src/vte.c,v
retrieving revision 1.404
diff -p -u -r1.404 vte.c
--- src/vte.c	2 May 2004 06:43:01 -0000	1.404
+++ src/vte.c	12 Oct 2004 19:19:17 -0000
@@ -10122,6 +10122,8 @@ vte_terminal_motion_notify(GtkWidget *wi
 		     terminal->pvt->mouse_cell_motion_tracking ||
 		     terminal->pvt->mouse_all_motion_tracking;
 
+	gdk_window_mouse_motion_occurred (gdk_window_get_toplevel (widget->window));
+
 #ifdef VTE_DEBUG
 	if (_vte_debug_on(VTE_DEBUG_EVENTS)) {
 		fprintf(stderr, "Motion notify (%lf,%lf).\n",
@@ -10222,6 +10224,10 @@ vte_terminal_button_press(GtkWidget *wid
 		     terminal->pvt->mouse_cell_motion_tracking ||
 		     terminal->pvt->mouse_all_motion_tracking;
 
+	gdk_window_begin_mouse_action (gdk_window_get_toplevel (widget->window),
+				       GDK_MOUSE_ACTION_SELECTION,
+				       event->time);
+
 	/* Read the modifiers. */
 	if (gdk_event_get_state((GdkEvent*)event, &modifiers)) {
 		terminal->pvt->modifiers = modifiers;
@@ -10403,6 +10409,10 @@ vte_terminal_button_release(GtkWidget *w
 		     terminal->pvt->mouse_hilite_tracking ||
 		     terminal->pvt->mouse_cell_motion_tracking ||
 		     terminal->pvt->mouse_all_motion_tracking;
+
+	gdk_window_end_mouse_action (gdk_window_get_toplevel (widget->window),
+				     GDK_MOUSE_ACTION_SELECTION,
+				     event->time);
 
 	/* Disconnect from autoscroll requests. */
 	vte_terminal_stop_autoscroll(terminal);
