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.
This commit is contained in:
Godfath3r 2013-03-22 20:32:38 +01:00 committed by Boris Faure
parent 2fdfbda22c
commit 28071e731e
1 changed files with 1 additions and 1 deletions

View File

@ -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);