rotation: added code to reset fg_ec when it is deleted. 69/93369/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 24 Oct 2016 04:02:45 +0000 (13:02 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 24 Oct 2016 04:09:29 +0000 (13:09 +0900)
There was a bug that the window was not rotated when its transient_for child window was deleted.
In this case, the fg_ec was not updated because the parent window had been shown state already.
So, the fg_ec was maintained to the deleted child window.
For this reason, the parent window was not added to the rotation update list.

Change-Id: Id1cf38fab82de795201064cbb96438d015529800

src/rotation/e_mod_rotation_wl.c

index 95fd048..b872990 100644 (file)
@@ -1445,6 +1445,9 @@ _rot_hook_client_del(void *d EINA_UNUSED, E_Client *ec)
 
         eina_hash_del_by_key(hash_policy_ext_rotation, &ec);
      }
+
+   if (fg_ec == ec)
+     fg_ec = NULL;
 }
 
 static void