forked from enlightenment/enlightenment
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:
parent
b4a3dc1f88
commit
a95d5ebd40
|
@ -1318,7 +1318,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;
|
||||
|
@ -1393,7 +1393,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))
|
||||
{
|
||||
|
@ -1409,7 +1409,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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue