require an elm win to apply auto-visibility for internal wins in wl surface commit

other internal surfaces could be things like cursors, and these should not be made visible
before setting a role
This commit is contained in:
Mike Blumenkrantz 2016-11-22 11:20:33 -05:00
parent 5497fadce4
commit 7b7e56af0c
1 changed files with 3 additions and 3 deletions

View File

@ -1324,7 +1324,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
#endif
ec->comp_data->in_commit = 1;
if (state->new_attach && ec->ignored && (ec->comp_data->shell.surface || ec->internal))
if (state->new_attach && ec->ignored && (ec->comp_data->shell.surface || ec->internal_elm_win))
{
EC_CHANGED(ec);
ec->new_client = 1;
@ -1419,7 +1419,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
{
if ((ec->comp_data->shell.surface) && (ec->comp_data->shell.unmap))
ec->comp_data->shell.unmap(ec->comp_data->shell.surface);
else if (ec->comp_data->cursor || e_client_has_xwindow(ec) || ec->internal ||
else if (ec->comp_data->cursor || e_client_has_xwindow(ec) || ec->internal_elm_win ||
(ec->comp_data->sub.data && ec->comp_data->sub.data->parent->comp_data->mapped) ||
(ec == e_comp_wl->drag_client))
{
@ -1435,7 +1435,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
{
if ((ec->comp_data->shell.surface) && (ec->comp_data->shell.map))
ec->comp_data->shell.map(ec->comp_data->shell.surface);
else if (ec->comp_data->cursor || e_client_has_xwindow(ec) || ec->internal ||
else if (ec->comp_data->cursor || e_client_has_xwindow(ec) || ec->internal_elm_win ||
(ec->comp_data->sub.data && ec->comp_data->sub.data->parent->comp_data->mapped) ||
(ec == e_comp_wl->drag_client))
{