When a floating mode was unset, e restored ec's layer to NORMAL only.
However, the layer of ec can be another layer (such as NORMAL, NOTIFICATION, etc.).
So, we changed code to restore its layer to original layer.
Change-Id: Ie528e6ede7d12d9fd795b0266d04f473d301fb63
int count;
Eina_Bool running;
} show_pending;
+
+ E_Layer floating_saved_layer;
};
#define e_client_focus_policy_click(ec) \
if (ec->frame)
{
if (floating)
- e_client_layer_set(ec, E_LAYER_CLIENT_ABOVE);
+ {
+ ec->floating_saved_layer = ec->layer;
+ e_client_layer_set(ec, E_LAYER_CLIENT_ABOVE);
+ }
else
- e_client_layer_set(ec, E_LAYER_CLIENT_NORMAL);
+ {
+ e_client_layer_set(ec, ec->floating_saved_layer);
+ }
}
EC_CHANGED(ec);