rotation: Check if client is activity before update a variable fg_ec. 76/96276/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 8 Nov 2016 10:27:44 +0000 (19:27 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 8 Nov 2016 10:27:44 +0000 (19:27 +0900)
there was a problem that a client like volume(fullscreen, alpha) is rotated on
the client which is unable to rotate.

Change-Id: I4299612e79639042f183669b670ed1f6f90e23a9

src/rotation/e_mod_rotation_wl.c

index b872990..b7baf41 100644 (file)
@@ -161,7 +161,9 @@ _rot_client_cb_vis_prepare_foreground(void *data, Evas_Object *obj, void *event_
    ec = rot->ec;
 
    EDBG(ec, "Update Foreground Client '%s'(%p)", ec->icccm.name, ec);
-   fg_ec = ec;
+   if (e_policy_visibility_client_is_activity(ec))
+     fg_ec = ec;
+
    _e_client_rotation_zone_set(ec->zone, ec, NULL);
    if (ec->changes.rotation)
      {