billiob pushed a commit to branch master.
commit 28071e731e5a3122080bbc39a5aaa4bcc5e5e9f5
Author: Godfath3r <[email protected]>
Date: Fri Mar 22 20:32:38 2013 +0100
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 4c0f005..e8b424c 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);
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar