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 40fc1c0496
commit 2b1b6def72
1 changed files with 1 additions and 0 deletions

View File

@ -3861,6 +3861,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;