diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-10-23 20:12:14 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-10-23 20:12:14 -0400 |
commit | 94c78423fca44652e9c837e00cf932e0cadb50de (patch) | |
tree | 164a881b01cc33793b82bf12ab36d1f8e0beac91 /src | |
parent | 03250451173cdc63aeb10f2f43ec7fe203082be1 (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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. */ |