Only unignore a client on the first commit with a buffer

Otherwise, if a wayland client does its first commit without a buffer
attached it will confuse our focus logic.
This commit is contained in:
Derek Foreman 2016-06-29 11:21:01 -05:00
parent 033217c8e1
commit 27e9845abd
1 changed files with 1 additions and 1 deletions

View File

@ -1253,7 +1253,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
#endif
ec->comp_data->in_commit = 1;
if (ec->ignored && (ec->comp_data->shell.surface || ec->internal))
if (state->new_attach && ec->ignored && (ec->comp_data->shell.surface || ec->internal))
{
EC_CHANGED(ec);
ec->new_client = 1;