wayland: Always add frame callbacks to current state on commit

Summary: Previously we ignored it for unmapped surfaces.

Reviewers: devilhorns, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2932
This commit is contained in:
Derek Foreman 2015-08-07 14:52:33 -04:00 committed by Mike Blumenkrantz
parent cae58cea9f
commit 15d13dad16
1 changed files with 6 additions and 5 deletions

View File

@ -1131,6 +1131,12 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
state->sy = 0;
state->new_attach = EINA_FALSE;
/* insert state frame callbacks into comp_data->frames
* NB: This clears state->frames list */
ec->comp_data->frames = eina_list_merge(ec->comp_data->frames,
state->frames);
state->frames = NULL;
ec->ignored = ignored;
if (!ec->comp_data->mapped) goto unmapped;
@ -1201,11 +1207,6 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
eina_tiler_free(tmp);
}
/* insert state frame callbacks into comp_data->frames
* NB: This clears state->frames list */
ec->comp_data->frames = eina_list_merge(ec->comp_data->frames, state->frames);
state->frames = NULL;
return;
unmapped: