From 1eae4505db61caceb3b1f2f92c447c7c3aed41f4 Mon Sep 17 00:00:00 2001 From: MinJeong Kim Date: Fri, 27 Feb 2015 18:18:57 +0900 Subject: [PATCH] Ignore configure requests for windows which do not have relevant E_Client yet Change-Id: I2555246058460da538f61daa0496a18995ea6d43 Signed-off-by: MinJeong Kim --- src/bin/e_comp_x.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c index bf04fed..2304ba7 100644 --- a/src/bin/e_comp_x.c +++ b/src/bin/e_comp_x.c @@ -1401,8 +1401,19 @@ _e_comp_x_configure_request(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore if (e_comp_find_by_window(ev->win)) return ECORE_CALLBACK_RENEW; ec = _e_comp_x_client_find_by_window(ev->win); + /* ignore requests for windows that don't have E_Client yet */ + if (!ec) + { + Ecore_X_Window_Attributes att; + + memset(&att, 0, sizeof(Ecore_X_Window_Attributes)); + ecore_x_window_attributes_get(ev->win, &att); + + if (!att.override) + return ECORE_CALLBACK_PASS_ON; + } /* pass through requests for windows we haven't/won't reparent yet */ - if (ec && (!ec->comp_data->need_reparent) && (!ec->comp_data->reparented)) + if ((ec) && (!ec->comp_data->need_reparent) && (!ec->comp_data->reparented)) { ec->comp_data->initial_attributes.x = ev->x; ec->comp_data->initial_attributes.y = ev->y; -- 2.7.4