From: Gwanglim Lee Date: Wed, 5 Jun 2013 08:38:08 +0000 (+0900) Subject: [ILLUME] Do not rotate dependent rotation windows if the notification window with... X-Git-Tag: submit/tizen_2.2/20130714.144759~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F9761%2F2;p=platform%2Fcore%2Fuifw%2Fe17-extra-modules.git [ILLUME] Do not rotate dependent rotation windows if the notification window with no focus is activation Change-Id: Ibcb69635254fc64fca912700dbc077d5bd62f70b --- diff --git a/illume2-tizen/src/policies/illume/policy.c b/illume2-tizen/src/policies/illume/policy.c index 4845fbf..eb21304 100644 --- a/illume2-tizen/src/policies/illume/policy.c +++ b/illume2-tizen/src/policies/illume/policy.c @@ -6331,8 +6331,36 @@ _policy_property_active_indicator_win_change(Ecore_X_Event_Window_Property *even ELB(ELBT_ROT, "ERR! NO BD ACTIVE_INDI_WIN", active_win); return; } - dep_rot.refer.active_win = active_win; - _policy_border_dependent_rotation(bd); + + /* The normal application window is ok to rotate dependent rotation windows. + * But if the notification window which doesn't have accepts_focus such as volume popup + * is the active window, then the illume doesn't rotate dependent windows. + */ + Eina_Bool rot = EINA_FALSE; + if (e_illume_border_is_notification(bd)) + { + if ((bd->client.icccm.accepts_focus) || (bd->client.icccm.take_focus)) + { + rot = EINA_TRUE; + } + } + else + { + rot = EINA_TRUE; + } + + ELBF(ELBT_ROT, 0, bd->client.win, + "ROT:%d NOTI:%d ACCEPT_FOCUS:%d TAKE_FOCUS:%d", + rot, + e_illume_border_is_notification(bd), + bd->client.icccm.accepts_focus, + bd->client.icccm.take_focus); + + if (rot) + { + dep_rot.refer.active_win = active_win; + _policy_border_dependent_rotation(bd); + } } }