From a02c717cc838413d7696c2c4802be4d34203bb55 Mon Sep 17 00:00:00 2001 From: Jaeho Lee Date: Sun, 9 Sep 2012 19:19:03 +0900 Subject: [PATCH] tizen 2.0 build Change-Id: I8fcfb71355cd6f7eb91af314cee41820ce3bf984 --- packaging/app-core.spec | 2 +- src/appcore-efl.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/packaging/app-core.spec b/packaging/app-core.spec index 5cc6d47..7f3fd9f 100644 --- a/packaging/app-core.spec +++ b/packaging/app-core.spec @@ -2,7 +2,7 @@ Name: app-core Summary: Application basic Version: 1.2 -Release: 27 +Release: 28 Group: TO_BE/FILLED_IN License: Apache License, Version 2.0 Source0: app-core-%{version}.tar.gz diff --git a/src/appcore-efl.c b/src/appcore-efl.c index 4e59817..25d4f1c 100755 --- a/src/appcore-efl.c +++ b/src/appcore-efl.c @@ -349,12 +349,23 @@ static bool __update_win(unsigned int win, bool bfobscured) } +Ecore_X_Atom atom_parent; + static Eina_Bool __show_cb(void *data, int type, void *event) { Ecore_X_Event_Window_Show *ev; + int ret; + Ecore_X_Window parent; ev = event; + ret = ecore_x_window_prop_window_get(ev->win, atom_parent, &parent, 1); + if (ret != 1) + { + // This is child window. Skip!!! + return ECORE_CALLBACK_PASS_ON; + } + _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win); if (!__exist_win((unsigned int)ev->win)) @@ -418,6 +429,12 @@ static void __add_climsg_cb(struct ui_priv *ui) { _ret_if(ui == NULL); + atom_parent = ecore_x_atom_get("_E_PARENT_BORDER_WINDOW"); + if (!atom_parent) + { + // Do Error Handling + } + ui->hshow = ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW, __show_cb, ui); ui->hhide = -- 2.7.4