only set want_focus for non-hidden clients when deferring focus setting

T950
This commit is contained in:
Mike Blumenkrantz 2014-02-14 14:56:16 -05:00
parent 46a715db35
commit bbf29c6a2a
1 changed files with 3 additions and 2 deletions

View File

@ -1385,7 +1385,8 @@ _e_comp_intercept_focus(void *data, Evas_Object *obj, Eina_Bool focus)
if (!cw->visible) if (!cw->visible)
{ {
/* not yet visible, wait till the next time... */ /* not yet visible, wait till the next time... */
ec->want_focus = 1; ec->want_focus = !ec->hidden;
if (ec->want_focus)
EC_CHANGED(ec); EC_CHANGED(ec);
return; return;
} }