reject client fullscreening based on config and desk visibility

This commit is contained in:
Mike Blumenkrantz 2015-05-18 13:00:23 -04:00
parent e717a2e107
commit 205d8b0b74
1 changed files with 1 additions and 0 deletions

View File

@ -3817,6 +3817,7 @@ e_client_fullscreen(E_Client *ec, E_Fullscreen policy)
if (!ec->zone) return;
if ((ec->shaded) || (ec->shading) || ec->fullscreen) return;
if ((!e_config->allow_above_fullscreen) && (!ec->desk->visible)) return;
if (ec->new_client)
{
ec->need_fullscreen = 1;