don't run client visibility idler updates for iconic clients

This commit is contained in:
Mike Blumenkrantz 2014-03-04 15:17:24 -05:00
parent 7b44add514
commit 5241140dd2
1 changed files with 3 additions and 2 deletions

View File

@ -1784,7 +1784,7 @@ _e_client_eval(E_Client *ec)
prop |= E_CLIENT_PROPERTY_GRAVITY;
}
if ((ec->changes.visible) && (ec->visible) && (ec->new_client))
if ((ec->changes.visible) && (ec->visible) && (ec->new_client) && (!ec->iconic))
{
int x, y;
@ -1844,7 +1844,8 @@ _e_client_eval(E_Client *ec)
else if ((ec->changes.visible) && (ec->new_client))
{
ec->changes.visible = 0;
_e_client_event_simple(ec, E_EVENT_CLIENT_HIDE);
if (!ec->iconic)
_e_client_event_simple(ec, E_EVENT_CLIENT_HIDE);
}
if (ec->changes.icon)