From 1f44a593c266709803667d114afc6719aa3d84e9 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 29 Jun 2016 16:19:20 -0500 Subject: [PATCH] Track whether a surface is an xdg one --- src/bin/e_comp_wl.h | 1 + src/modules/wl_desktop_shell/e_mod_main.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h index f905da7fc..1dd47f227 100644 --- a/src/bin/e_comp_wl.h +++ b/src/bin/e_comp_wl.h @@ -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 diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c index 87779ef24..676736a8c 100644 --- a/src/modules/wl_desktop_shell/e_mod_main.c +++ b/src/modules/wl_desktop_shell/e_mod_main.c @@ -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;