summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-06-23 11:26:57 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-06-23 11:26:57 -0500
commitbdf1017f902e197d35be126863db992d5b663423 (patch)
treeb0d1ef8b4856270d627c11175a48a66a9d266819
parent453e6adc33a1e1d117fbbdd6d06022f119e643a3 (diff)
downloadenlightenment-bdf1017f902e197d35be126863db992d5b663423.tar.gz
Don't send configure to wl_shell popups
This confuses Qt badly, and rightly so, because we shouldn't be doing it.
-rw-r--r--src/modules/wl_desktop_shell/e_mod_main.c11
1 files changed, 11 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 fc7808496c..d5f78135df 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -475,6 +475,17 @@ static const struct wl_shell_surface_interface _e_shell_surface_interface =
static void
_e_shell_surface_configure_send(struct wl_resource *resource, uint32_t edges, int32_t width, int32_t height)
{
+ E_Client *ec;
+
+ if (!(ec = wl_resource_get_user_data(resource)))
+ {
+ wl_resource_post_error(resource,
+ WL_DISPLAY_ERROR_INVALID_OBJECT,
+ "No Client For Shell Surface");
+ return;
+ }
+ if (e_client_util_is_popup(ec)) return;
+
wl_shell_surface_send_configure(resource, edges, width, height);
}