summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-10-23 20:12:14 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-10-23 20:12:14 -0400
commit94c78423fca44652e9c837e00cf932e0cadb50de (patch)
tree164a881b01cc33793b82bf12ab36d1f8e0beac91 /src
parent03250451173cdc63aeb10f2f43ec7fe203082be1 (diff)
Bug 595445 - Motion notify events are not propagated to parent widget
Propagate motion-notify event to parent if not selecting.
Diffstat (limited to 'src')
-rw-r--r--src/vte.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vte.c b/src/vte.c
index 1c927bc..902a821 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6801,10 +6801,11 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
VteTerminal *terminal;
int width, height;
long x, y;
+ gboolean handled = FALSE;
/* check to see if it matters */
if (!GTK_WIDGET_DRAWABLE(widget)) {
- return TRUE;
+ return handled;
}
terminal = VTE_TERMINAL(widget);
@@ -6843,6 +6844,7 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
vte_terminal_maybe_send_mouse_drag(terminal,
event);
}
+ handled = TRUE;
break;
default:
vte_terminal_maybe_send_mouse_drag(terminal, event);
@@ -6877,7 +6879,7 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
terminal->pvt->mouse_last_x = x;
terminal->pvt->mouse_last_y = y;
- return TRUE;
+ return handled;
}
/* Read and handle a pointing device buttonpress event. */