rotation: set the fg_ec to ec only when ec is not fully obscured 06/112606/1
authorDuna Oh <duna.oh@samsung.com>
Thu, 2 Feb 2017 03:21:40 +0000 (12:21 +0900)
committerDuna Oh <duna.oh@samsung.com>
Thu, 2 Feb 2017 03:22:11 +0000 (12:22 +0900)
Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: Idf3a88840328a22ec5bc8710999e1492b8dfcc88

src/rotation/e_mod_rotation_wl.c

index e18e73e..4dcae94 100644 (file)
@@ -2043,8 +2043,11 @@ _rot_intercept_hook_show_helper(void *d EINA_UNUSED, E_Client *ec)
         EDBG(ec, "Check ec %x to set fg_ec", e_client_util_win_get(ec));
         if (_no_active_lockscreen_check(ec))
           {
-             EDBG(ec, "Set the fg_ec to %x", e_client_util_win_get(ec));
-             fg_ec = ec;
+             if (ec->visibility.obscured != E_VISIBILITY_FULLY_OBSCURED)
+               {
+                  EDBG(ec, "Set the fg_ec to %x", e_client_util_win_get(ec));
+                  fg_ec = ec;
+               }
 
              if (_camera_check(ec))
                _unlock_rot_for_fg_app(ec->zone);