billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=da8544728b8a5b8a2fc20b999c69365b09b89c79

commit da8544728b8a5b8a2fc20b999c69365b09b89c79
Author: Boris Faure <[email protected]>
Date:   Wed Jan 29 21:41:13 2014 +0100

    do not send mouse when making a selection
---
 src/bin/termio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 93918e8..b54ec23 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -3187,7 +3187,7 @@ _smart_cb_mouse_up(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNUSED
    ctrl = evas_key_modifier_is_set(ev->modifiers, "Control");
 
    _smart_xy_to_cursor(data, ev->canvas.x, ev->canvas.y, &cx, &cy);
-   if (!shift && !ctrl)
+   if (!shift && !ctrl && !sd->pty->selection.makesel)
       if (_rep_mouse_up(sd, ev, cx, cy)) return;
    if (sd->link.down.dnd) return;
    if (sd->pty->selection.makesel)
@@ -3228,6 +3228,7 @@ _smart_cb_mouse_up(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNUSED
                  _smart_update_queue(data, sd);
                  _take_selection(data, ELM_SEL_TYPE_PRIMARY);
               }
+            sd->pty->selection.makesel = EINA_FALSE;
           }
      }
 }

-- 


Reply via email to