[vte] widget: Initialize the last mouse coordinates to the padding
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Initialize the last mouse coordinates to the padding
- Date: Tue, 27 Feb 2018 21:36:54 +0000 (UTC)
commit 634d5b019d5a53dc2dd2d82a6c3b4bfc094e92c6
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Feb 27 22:34:15 2018 +0100
widget: Initialize the last mouse coordinates to the padding
https://bugzilla.gnome.org/show_bug.cgi?id=789536
src/vte.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 7ad85cb..35d5fe9 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8280,9 +8280,13 @@ VteTerminalPrivate::VteTerminalPrivate(VteTerminal *t) :
m_cell_height_scale = 1.;
m_has_fonts = FALSE;
+ /* Hyperlink */
m_allow_hyperlink = FALSE;
m_hyperlink_auto_id = 0;
+ /* Mouse */
+ m_mouse_last_position = vte::view::coords(-1, -1);
+
/* Not all backends generate GdkVisibilityNotify, so mark the
* window as unobscured initially. */
m_visibility_state = GDK_VISIBILITY_UNOBSCURED;
@@ -10734,7 +10738,6 @@ VteTerminalPrivate::reset(bool clear_tabstops,
apply_mouse_cursor();
m_mouse_pressed_buttons = 0;
m_mouse_handled_buttons = 0;
- m_mouse_last_position = vte::view::coords(-1, -1);
m_mouse_xterm_extension = FALSE;
m_mouse_urxvt_extension = FALSE;
m_mouse_smooth_scroll_delta = 0.;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]