[vte] widget: Correct coordinate check
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Correct coordinate check
- Date: Fri, 25 Dec 2015 21:00:26 +0000 (UTC)
commit 722610356d11ad9e5d8fd8e529cc3114b547a5a2
Author: Christian Persch <chpe gnome org>
Date: Fri Dec 25 21:55:43 2015 +0100
widget: Correct coordinate check
src/vte.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 92a3e8d..a492124 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5918,11 +5918,10 @@ VteTerminalPrivate::match_hilite(vte::view::coords const& pos)
{
auto x = pos.x;
auto y = pos.y;
- auto allocation = get_allocated_rect();
/* if the cursor is not above a cell, skip */
- if (x < 0 || x > allocation.width
- || y < 0 || y > allocation.height) {
+ if (x < 0 || x >= m_view_usable_extents.width() ||
+ y < 0 || y >= m_view_usable_extents.height()) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]