forked from enlightenment/enlightenment
adjust size for frame geometry in no-animation maximize path
this is based on window size, not surface size also ignore coords if the size matches, animating just a positional change looks dumb
This commit is contained in:
parent
ef3260a799
commit
e3b3970b6e
|
@ -1708,7 +1708,10 @@ _e_client_maximize_run(E_Client *ec, int x, int y, int w, int h)
|
|||
int pw, ph;
|
||||
Eina_Bool disabled = EINA_FALSE;
|
||||
if (e_pixmap_size_get(ec->pixmap, &pw, &ph))
|
||||
disabled = (ec->x == x) && (ec->y == y) && (w == pw) && (h == ph);
|
||||
{
|
||||
e_comp_object_frame_wh_adjust(ec->frame, pw, ph, &pw, &ph);
|
||||
disabled = (w == pw) && (h == ph);
|
||||
}
|
||||
if ((!disabled) && e_config->window_maximize_animate && (!ec->maximize_anims_disabled) &&
|
||||
(!starting) && (!ec->changes.need_maximize))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue