disable redirection toggling for the nocomp client

#ThisBreaksTheCompositor!
This commit is contained in:
Mike Blumenkrantz 2015-12-07 18:14:33 -05:00
parent 7a15b12d44
commit ae0e6c73a8
2 changed files with 6 additions and 2 deletions

View File

@ -980,7 +980,11 @@ _e_comp_act_opacity_set_go(E_Object * obj EINA_UNUSED, const char *params)
static void
_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);
}
//////////////////////////////////////////////////////////////////////////

View File

@ -224,7 +224,7 @@ e_int_client_menu_create(E_Client *ec)
e_menu_item_submenu_set(mi, subm);
e_object_unref(E_OBJECT(subm));
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);
e_menu_item_check_set(mi, 1);