[vte] widget: Update the last mouse coordinates on enter and leave events
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Update the last mouse coordinates on enter and leave events
- Date: Tue, 27 Feb 2018 21:36:49 +0000 (UTC)
commit 135c6844e554a569f14a48db362af58c9ddfedaa
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Feb 27 22:32:19 2018 +0100
widget: Update the last mouse coordinates on enter and leave events
https://bugzilla.gnome.org/show_bug.cgi?id=789536
src/vte.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 8c4efde..7ad85cb 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7491,6 +7491,8 @@ VteTerminalPrivate::widget_enter(GdkEventCrossing *event)
m_mouse_cursor_over_widget = TRUE;
apply_mouse_cursor();
+
+ m_mouse_last_position = pos;
}
void
@@ -7509,6 +7511,8 @@ VteTerminalPrivate::widget_leave(GdkEventCrossing *event)
*/
m_mouse_cursor_over_widget = FALSE;
apply_mouse_cursor();
+
+ m_mouse_last_position = pos;
}
static G_GNUC_UNUSED inline const char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]