[vte] Bug 595445 - Motion notify events are not propagated to parent widget
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] Bug 595445 - Motion notify events are not propagated to parent widget
- Date: Sat, 24 Oct 2009 00:14:14 +0000 (UTC)
commit 94c78423fca44652e9c837e00cf932e0cadb50de
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Oct 23 20:12:14 2009 -0400
Bug 595445 - Motion notify events are not propagated to parent widget
Propagate motion-notify event to parent if not selecting.
src/vte.c | 6 ++++--
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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]