rotation: added code to reset fg_ec when it is just about to hide. 93/99293/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 22 Nov 2016 09:51:40 +0000 (18:51 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 22 Nov 2016 09:51:40 +0000 (18:51 +0900)
To find a topmost fullscreen visible window properly,
we need to reset fg_ec if it's hidden.

Change-Id: If67fa29e228d151fe8762b987f197840f6a3181e

src/rotation/e_mod_rotation_wl.c

index b7baf41..f25ef6b 100644 (file)
@@ -1702,6 +1702,9 @@ _rot_intercept_hook_hide(void *d EINA_UNUSED, E_Client *ec)
    // clear pending_show, because this window is hidden now.
    ec->e.state.rot.pending_show = 0;
 
+   if (fg_ec == ec)
+     fg_ec = NULL;
+
    // for rotating ec in the force_update_list
    _e_client_rotation_zone_set(ec->zone, fg_ec, ec);