if (qp->effect.final_visible_state)
{
if ((!qp->ec->focused) &&
- (qp->ec->icccm.accepts_focus || qp->ec->icccm.take_focus))
+ (qp->ec->icccm.accepts_focus || qp->ec->icccm.take_focus) &&
+ (evas_object_visible_get(qp->ec->frame) == EINA_TRUE))
{
ELOGF("QUICKPANEL", "effect finished but not focused. focus set to quickpanel", qp->ec);
- e_client_frame_focus_set(qp->ec, EINA_TRUE);
+ e_client_focus_latest_set(qp->ec);
}
}
{
if ((qp->ec) &&
(!qp->ec->focused) &&
- (qp->ec->icccm.accepts_focus || qp->ec->icccm.take_focus))
+ (qp->ec->icccm.accepts_focus || qp->ec->icccm.take_focus) &&
+ (evas_object_visible_get(qp->ec->frame) == EINA_TRUE))
{
ELOGF("QUICKPANEL", "effect finished but not focused. focus set to quickpanel", qp->ec);
- e_client_frame_focus_set(qp->ec, EINA_TRUE);
+ e_client_focus_latest_set(qp->ec);
}
}
}