Track whether a surface is an xdg one

This commit is contained in:
Derek Foreman 2016-06-29 16:19:20 -05:00
parent 7b470c402e
commit 1f44a593c2
2 changed files with 3 additions and 0 deletions

View File

@ -327,6 +327,7 @@ struct _E_Comp_Wl_Client_Data
Eina_Bool moved : 1;
Eina_Bool maximizing : 1;
Eina_Bool in_commit : 1;
Eina_Bool is_xdg_surface : 1;
};
struct _E_Comp_Wl_Output

View File

@ -1323,6 +1323,7 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
cdata->shell.map = _e_xdg_shell_surface_map;
cdata->shell.unmap = _e_xdg_shell_surface_unmap;
cdata->shell.data = E_NEW(E_Shell_Data, 1);
cdata->is_xdg_surface = EINA_TRUE;
/* set toplevel client properties */
ec->icccm.accepts_focus = 1;
@ -1412,6 +1413,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
cdata->shell.map = _e_xdg_shell_surface_map;
cdata->shell.unmap = _e_xdg_shell_surface_unmap;
cdata->shell.data = E_NEW(E_Shell_Data, 1);
cdata->is_xdg_surface = EINA_TRUE;
if (!ec->internal)
ec->borderless = !ec->internal_elm_win;