There is a exception case that "bd->parent" is set to NULL, even if "bd->client.icccm... 93/9793/2
authorShawn Lee <shiin.lee@samsung.com>
Thu, 1 Aug 2013 12:11:45 +0000 (21:11 +0900)
committerShawn Lee <shiin.lee@samsung.com>
Thu, 1 Aug 2013 12:24:41 +0000 (21:24 +0900)
Change-Id: Idc6f177ea3f5b62725a39caec5e56f7334cb5bde

illume2-tizen/src/policies/illume/policy.c

index ededdc1..b15b1cd 100644 (file)
@@ -1170,6 +1170,8 @@ _policy_border_pre_fetch(E_Border *bd)
         transient_for_win = ecore_x_icccm_transient_for_get(bd->client.win);
         if (bd->client.icccm.transient_for == transient_for_win)
           {
+             if (!bd->parent)
+               bd->parent = e_border_find_by_client_window(bd->client.icccm.transient_for);
              ELBF(ELBT_ILLUME, 0, bd->client.win, "Same transient_for:0x%07x. SKIP...", transient_for_win);
              goto transient_fetch_done;
           }