summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-19 13:43:06 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-02 13:34:05 -0500
commitf63ebeb939205e4f70c235628d23e2f2b9728bfc (patch)
treee2ebe0792aa14d7bbe7c82ba133c0a18196411d1
parentf1ccac37751625d203f2219f1e569823b3877900 (diff)
call xdg surface map when creating a surface for visible internal windows
if windows are created during startup, they will attempt to show themselves before xdg surface operations are available, leading to a scenario where they will never successfully map themselves. if the elm win object is visible, this indicates a mapped internal window, so directly call the map function at this time to make the window visible
-rw-r--r--src/modules/wl_desktop_shell/e_mod_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c
index bb4020d52..60279f45f 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -1165,6 +1165,9 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
1165 ec->border.changed = ec->changes.border = !ec->borderless; 1165 ec->border.changed = ec->changes.border = !ec->borderless;
1166 ec->netwm.type = E_WINDOW_TYPE_NORMAL; 1166 ec->netwm.type = E_WINDOW_TYPE_NORMAL;
1167 ec->comp_data->set_win_type = EINA_TRUE; 1167 ec->comp_data->set_win_type = EINA_TRUE;
1168
1169 if (ec->internal_elm_win && evas_object_visible_get(ec->internal_elm_win))
1170 _e_xdg_shell_surface_map(surface_resource);
1168} 1171}
1169 1172
1170static void 1173static void
@@ -1272,7 +1275,8 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
1272 cdata->popup.x = x; 1275 cdata->popup.x = x;
1273 cdata->popup.y = y; 1276 cdata->popup.y = y;
1274 } 1277 }
1275 1278 if (ec->internal_elm_win && evas_object_visible_get(ec->internal_elm_win))
1279 _e_xdg_shell_surface_map(surface_resource);
1276} 1280}
1277 1281
1278static void 1282static void