From 28071e731e5a3122080bbc39a5aaa4bcc5e5e9f5 Mon Sep 17 00:00:00 2001 From: Godfath3r Date: Fri, 22 Mar 2013 20:32:38 +0100 Subject: [PATCH] fix boxsel misbehaviour when pasting with middle click. When in terminology, user selects some text with boxselection (shift + click/drag) and pastes in the same window with middle click. The box selection then transforms into normal. Now it's fixed. --- src/bin/termio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 4c0f005c..e8b424cb 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -2137,7 +2137,6 @@ _smart_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__ if (!sd) return; _smart_xy_to_cursor(data, ev->canvas.x, ev->canvas.y, &cx, &cy); sd->didclick = EINA_FALSE; - sd->boxsel = EINA_FALSE; if ((ev->button == 3) && evas_key_modifier_is_set(ev->modifiers, "Control")) { evas_object_smart_callback_call(data, "options", NULL); @@ -2146,6 +2145,7 @@ _smart_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__ if (_rep_mouse_down(sd, ev, cx, cy)) return; if (ev->button == 1) { + sd->boxsel = EINA_FALSE; if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK) { _sel_line(data, cx, cy - sd->scroll);