forked from enlightenment/enlightenment
disable redirection toggling for the nocomp client
#ThisBreaksTheCompositor!
This commit is contained in:
parent
2bff9611c3
commit
5ee63bb201
|
@ -980,7 +980,11 @@ _e_comp_act_opacity_set_go(E_Object * obj EINA_UNUSED, const char *params)
|
||||||
static void
|
static void
|
||||||
_e_comp_act_redirect_toggle_go(E_Object * obj EINA_UNUSED, const char *params EINA_UNUSED)
|
_e_comp_act_redirect_toggle_go(E_Object * obj EINA_UNUSED, const char *params EINA_UNUSED)
|
||||||
{
|
{
|
||||||
e_comp_client_redirect_toggle(e_client_focused_get());
|
E_Client *ec;
|
||||||
|
|
||||||
|
ec = e_client_focused_get();
|
||||||
|
if ((!ec) || (!e_pixmap_is_x(ec->pixmap)) || (ec == e_comp->nocomp_ec)) return;
|
||||||
|
e_comp_client_redirect_toggle(ec);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -224,7 +224,7 @@ e_int_client_menu_create(E_Client *ec)
|
||||||
e_menu_item_submenu_set(mi, subm);
|
e_menu_item_submenu_set(mi, subm);
|
||||||
e_object_unref(E_OBJECT(subm));
|
e_object_unref(E_OBJECT(subm));
|
||||||
e_object_data_set(E_OBJECT(subm), e_comp);
|
e_object_data_set(E_OBJECT(subm), e_comp);
|
||||||
if (e_pixmap_type_get(ec->pixmap) == E_PIXMAP_TYPE_X)
|
if (e_pixmap_is_x(ec->pixmap) && (e_comp->nocomp_ec != ec))
|
||||||
{
|
{
|
||||||
mi = e_menu_item_new(subm);
|
mi = e_menu_item_new(subm);
|
||||||
e_menu_item_check_set(mi, 1);
|
e_menu_item_check_set(mi, 1);
|
||||||
|
|
Loading…
Reference in New Issue