mobile policy desk set hook needs to ignore new_client clients
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 25 Mar 2015 16:29:36 +0000 (12:29 -0400)
committerBoram Park <boram1288.park@samsung.com>
Fri, 3 Apr 2015 01:47:59 +0000 (10:47 +0900)
desk set happens during client init, so these will always be new clients

ref D2242

Change-Id: Icf83859410916d2a4f6a0d9ac9679661d6347669

src/modules/policy_mobile/e_mod_main.c

index 710c26a6cb462b227fd72a7afd704abeb721759c..470bf3b16effc7ffbf9c2d8263b8fadb73f7cff4 100644 (file)
@@ -242,6 +242,7 @@ _pol_hook_client_desk_set(void *d EINA_UNUSED, E_Client *ec)
 
    if (e_object_is_del(E_OBJECT(ec))) return;
    if (!_pol_client_normal_check(ec)) return;
+   if (ec->new_client) return;
 
    pc = eina_hash_find(hash_pol_clients, &ec);
    pd = eina_hash_find(hash_pol_desks, &ec->desk);