mouse down focuses a term, whatever the button

This commit is contained in:
Boris Faure 2013-12-01 16:35:10 +01:00
parent 4bdf930368
commit 49b08115c9
1 changed files with 3 additions and 6 deletions

View File

@ -758,12 +758,9 @@ _cb_term_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSE
term2 = main_win_focused_term_get(term->wn);
if (term == term2) return;
if (ev->button == 1)
{
term->down.x = ev->canvas.x;
term->down.y = ev->canvas.y;
_term_focus(term);
}
term->down.x = ev->canvas.x;
term->down.y = ev->canvas.y;
_term_focus(term);
}
static void