use maximized geometry for shell maximize calls on wl clients if !buffer_commit

this is for setting the initial state of a surface as maximized, so do not use
animation geometry here
This commit is contained in:
Mike Blumenkrantz 2017-03-17 13:17:02 -04:00
parent 638657f043
commit 0d8b33c15f
2 changed files with 3 additions and 2 deletions

View File

@ -827,7 +827,8 @@ _e_comp_wl_evas_cb_maximize_pre(void *data, Evas_Object *obj EINA_UNUSED, void *
ecw = &ec->client.w, ech = &ec->client.h;
else
ecw = &ec->w, ech = &ec->h;
if ((!e_config->window_maximize_animate) || ec->maximize_anims_disabled)
if ((!e_config->window_maximize_animate) ||
ec->maximize_anims_disabled || (!ec->comp_data->buffer_commit))
{
e_client_maximize_geometry_get(ec, *max, NULL, NULL, &w, &h);
if (ec->internal)

View File

@ -530,7 +530,7 @@ _e_xdg_toplevel_cb_maximized_set(struct wl_client *client EINA_UNUSED, struct wl
if (e_object_is_del(E_OBJECT(ec))) return;
if (ec->lock_user_maximize) return;
if (e_config->window_maximize_animate && (!ec->maximize_anims_disabled))
if (e_config->window_maximize_animate && (!ec->maximize_anims_disabled) && ec->comp_data->buffer_commit)
w = ec->w, h = ec->h;
else
{