allow new fullscreening clients to replace current nocomp where applicable

This commit is contained in:
Mike Blumenkrantz 2015-05-18 13:19:56 -04:00
parent faf4ec630c
commit 88cb4541bd
1 changed files with 2 additions and 0 deletions

View File

@ -3867,6 +3867,8 @@ e_client_fullscreen(E_Client *ec, E_Fullscreen policy)
ec->need_fullscreen = 1;
return;
}
if (e_comp_get(NULL)->nocomp_ec && (ec->desk == e_comp_get(NULL)->nocomp_ec->desk))
e_comp_get(NULL)->nocomp_ec = ec;
ec->desk->fullscreen_clients = eina_list_append(ec->desk->fullscreen_clients, ec);
ec->pre_res_change.valid = 0;