discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=a28eae0ca9c80bdabd4bb1f4bd73a54da648d80c

commit a28eae0ca9c80bdabd4bb1f4bd73a54da648d80c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jan 21 17:21:31 2016 -0500

    allocate E_Shell_Data for all xdg surfaces (popups)
    
    this crashes if the shell surface does not have shell data
---
 src/modules/wl_desktop_shell/e_mod_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/wl_desktop_shell/e_mod_main.c 
b/src/modules/wl_desktop_shell/e_mod_main.c
index 1c9f7f6..a6245d8 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -1247,6 +1247,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, 
struct wl_resource *resource
    cdata->shell.ping = _e_xdg_shell_surface_ping;
    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);
 
    EC_CHANGED(ec);
    ec->new_client = ec->want_focus = ec->override = 1;

-- 


Reply via email to