summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-21 17:21:31 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-02 13:36:24 -0500
commita28eae0ca9c80bdabd4bb1f4bd73a54da648d80c (patch)
tree8646365802cc7225583a7370ef3584599d914a13
parent97b65584445cd190d4b020111cc9e1ce580ce259 (diff)
allocate E_Shell_Data for all xdg surfaces (popups)
this crashes if the shell surface does not have shell data
-rw-r--r--src/modules/wl_desktop_shell/e_mod_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c
index 1c9f7f651..a6245d8cc 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
1247 cdata->shell.ping = _e_xdg_shell_surface_ping; 1247 cdata->shell.ping = _e_xdg_shell_surface_ping;
1248 cdata->shell.map = _e_xdg_shell_surface_map; 1248 cdata->shell.map = _e_xdg_shell_surface_map;
1249 cdata->shell.unmap = _e_xdg_shell_surface_unmap; 1249 cdata->shell.unmap = _e_xdg_shell_surface_unmap;
1250 cdata->shell.data = E_NEW(E_Shell_Data, 1);
1250 1251
1251 EC_CHANGED(ec); 1252 EC_CHANGED(ec);
1252 ec->new_client = ec->want_focus = ec->override = 1; 1253 ec->new_client = ec->want_focus = ec->override = 1;