allocate E_Shell_Data for all xdg surfaces (popups)

this crashes if the shell surface does not have shell data
This commit is contained in:
Mike Blumenkrantz 2016-01-21 17:21:31 -05:00
parent 9245b1ec27
commit f54bf1ec60
1 changed files with 1 additions and 0 deletions

View File

@ -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;