do not unnecessarily rescale clients

this function is mainly for rescaling maximized/fullscreen clients to fit new
dimensions, so don't call on other clients since this can trigger unwanted resize
 events
This commit is contained in:
Mike Blumenkrantz 2017-09-28 13:03:41 -04:00
parent 15ea006eb5
commit 1d5977c02a
2 changed files with 8 additions and 3 deletions

View File

@ -2874,7 +2874,10 @@ e_client_desk_set(E_Client *ec, E_Desk *desk)
ecore_event_add(E_EVENT_CLIENT_DESK_SET, ev, (Ecore_End_Cb)_e_client_event_desk_set_free, NULL);
if (old_desk->zone == ec->zone)
e_client_rescale(ec);
{
if (ec->maximized || ec->fullscreen)
e_client_rescale(ec);
}
}
if (ec->stack.prev || ec->stack.next)
@ -3407,7 +3410,8 @@ e_client_zone_set(E_Client *ec, E_Zone *zone)
ecore_event_add(E_EVENT_CLIENT_ZONE_SET, ev, (Ecore_End_Cb)_e_client_event_zone_set_free, NULL);
e_remember_update(ec);
e_client_rescale(ec);
if (ec->maximized || ec->fullscreen)
e_client_rescale(ec);
}
E_API void

View File

@ -1829,7 +1829,8 @@ e_comp_clients_rescale(void)
EINA_LIST_FREE(tmp, ec)
{
ec->pre_res_change.valid = 0;
e_client_rescale(ec);
if (ec->maximized || ec->fullscreen)
e_client_rescale(ec);
}
}
}