set force flag when hiding comp wins on desk switch

This commit is contained in:
Mike Blumenkrantz 2013-04-23 09:07:58 +01:00
parent 6d27a48f58
commit fb4d8b9f35
1 changed files with 5 additions and 2 deletions

View File

@ -3481,9 +3481,12 @@ static Eina_Bool
_e_comp_bd_hide(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
E_Event_Border_Hide *ev = event;
if (ev->manage == 2) return ECORE_CALLBACK_RENEW; //desk hide
E_Comp_Win *cw = _e_comp_win_find(ev->border->win);
if (cw) _e_comp_win_hide(cw);
if (cw)
{
cw->force |= (ev->manage == 2);
_e_comp_win_hide(cw);
}
return ECORE_CALLBACK_PASS_ON;
}