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:
Mike Blumenkrantz 2017-03-22 16:15:16 -04:00
parent 39f3215fe7
commit 9cd6632904
1 changed files with 4 additions and 1 deletions

View File

@ -1531,7 +1531,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))
{