We add a configuration for the fullscreen layer.
For this, we can change the fullscreen layer using configuration each environment.
By default, the fullscreen layer is the normal layer.
Change-Id: Ic8303c112b58229253c46231b30ffd530f03cd26
_e_client_event_add(ec);
}
+static E_Layer
+_e_client_convert_fullscreen_layer(int layer)
+{
+ if (layer <= E_LAYER_CLIENT_NORMAL)
+ return E_LAYER_CLIENT_NORMAL;
+ else if (layer <= E_LAYER_CLIENT_ABOVE)
+ return E_LAYER_CLIENT_ABOVE;
+ else if (layer <= E_LAYER_CLIENT_EDGE)
+ return E_LAYER_CLIENT_EDGE;
+ else
+ return E_LAYER_CLIENT_FULLSCREEN;
+}
+
E_API E_Client *
e_client_new(E_Pixmap *cp, int first_map, int internal)
{
ec->post_lower = EINA_FALSE;
ec->animatable = EINA_TRUE;
ec->maximize_type = e_config->maximize_policy & E_MAXIMIZE_TYPE;
+ ec->fullscreen_layer = _e_client_convert_fullscreen_layer(e_config->fullscreen_layer);
/* FIXME: if first_map is 1 then we should ignore the first hide event
* or ensure the window is already hidden and events flushed before we
}
ec->saved.layer = ec->layer;
- e_client_layer_set(ec, E_LAYER_CLIENT_FULLSCREEN);
+ e_client_layer_set(ec, ec->fullscreen_layer);
ec->fullscreen = 1;
unsigned int want_focus : 1;
unsigned int user_skip_winlist : 1;
E_Maximize maximized;
- E_Fullscreen fullscreen_policy; // TODO: should be removed - yigl
+ E_Fullscreen fullscreen_policy;
+ E_Layer fullscreen_layer;
E_Transient transient_policy;
unsigned int borderless : 1;
unsigned char offer_resistance : 1;
E_CONFIG_VAL(D, T, transient.desktop, INT);
E_CONFIG_VAL(D, T, transient.iconify, INT);
E_CONFIG_VAL(D, T, fullscreen_policy, INT);
+ E_CONFIG_VAL(D, T, fullscreen_layer, INT);
E_CONFIG_VAL(D, T, dpms_enable, INT);
E_CONFIG_VAL(D, T, dpms_standby_enable, INT);
E_CONFIG_VAL(D, T, dpms_suspend_enable, INT);
int iconify;
} transient;
int fullscreen_policy;
+ int fullscreen_layer;
int dpms_enable;
int dpms_standby_enable;
int dpms_suspend_enable;