hide wl shell clients again after mapping if clients are on a hidden desk

fix T5544
This commit is contained in:
Mike Blumenkrantz 2017-08-25 14:47:05 -04:00
parent 592c2c7499
commit 0ee8cc896e
3 changed files with 9 additions and 3 deletions

View File

@ -413,8 +413,10 @@ _wl_shell_surface_map(struct wl_resource *resource)
{
ec->visible = EINA_TRUE;
evas_object_geometry_set(ec->frame, ec->x, ec->y, ec->w, ec->h);
evas_object_show(ec->frame);
ec->comp_data->mapped = EINA_TRUE;
evas_object_show(ec->frame);
if (!e_client_util_desk_visible(ec, e_desk_current_get(ec->zone)))
evas_object_hide(ec->frame);
}
}

View File

@ -609,8 +609,10 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
{
/* map this surface if needed */
ec->visible = EINA_TRUE;
evas_object_show(ec->frame);
ec->comp_data->mapped = EINA_TRUE;
evas_object_show(ec->frame);
if (!e_client_util_desk_visible(ec, e_desk_current_get(ec->zone)))
evas_object_hide(ec->frame);
/* FIXME: sometimes popup surfaces Do Not raise above their
* respective parents... */

View File

@ -239,8 +239,10 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
{
/* map this surface if needed */
ec->visible = EINA_TRUE;
evas_object_show(ec->frame);
ec->comp_data->mapped = EINA_TRUE;
evas_object_show(ec->frame);
if (!e_client_util_desk_visible(ec, e_desk_current_get(ec->zone)))
evas_object_hide(ec->frame);
/* FIXME: sometimes popup surfaces Do Not raise above their
* respective parents... */