[vte/vte-0-36] widget: Fix selection's padding adjustment



commit 3cf7c41308e1eb9e33986474232f94d0a221501a
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Jan 24 02:05:40 2014 +0100

    widget: Fix selection's padding adjustment
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722873

 src/vte.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index e0d9c93..43a9c48 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6700,9 +6700,8 @@ vte_terminal_start_selection(VteTerminal *terminal, gdouble x, gdouble y,
        /* Record that we have the selection, and where it started. */
        delta = terminal->pvt->screen->scroll_delta;
        terminal->pvt->has_selection = TRUE;
-       terminal->pvt->selection_last.x = x - terminal->pvt->inner_border.left;
-       terminal->pvt->selection_last.y = y - terminal->pvt->inner_border.top +
-                                         (terminal->char_height * delta);
+       terminal->pvt->selection_last.x = x;
+       terminal->pvt->selection_last.y = y + (terminal->char_height * delta);
 
        /* Decide whether or not to restart on the next drag. */
        switch (selection_type) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]