tizen 2.0 build
authorJaeho Lee <jaeho81.lee@samsung.com>
Sun, 9 Sep 2012 10:19:03 +0000 (19:19 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Sun, 9 Sep 2012 10:23:12 +0000 (19:23 +0900)
Change-Id: I8fcfb71355cd6f7eb91af314cee41820ce3bf984

packaging/app-core.spec
src/appcore-efl.c

index 5cc6d47..7f3fd9f 100644 (file)
@@ -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
index 4e59817..25d4f1c 100755 (executable)
@@ -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 =