discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=bbaa7a76b78190bd9080526556311be763a7297e

commit bbaa7a76b78190bd9080526556311be763a7297e
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Tue Dec 10 11:18:49 2013 -0500

    set systray icon layer based on gadcon container layer
---
 src/modules/systray/e_mod_xembed.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/src/modules/systray/e_mod_xembed.c 
b/src/modules/systray/e_mod_xembed.c
index d9d677f..ff7a20c 100644
--- a/src/modules/systray/e_mod_xembed.c
+++ b/src/modules/systray/e_mod_xembed.c
@@ -419,7 +419,22 @@ _systray_xembed_base_create(Instance_Xembed *xembed)
    if (!invis)
      ecore_x_window_background_color_set(xembed->win.base, r, g, b);
    ecore_x_window_show(xembed->win.base);
-   e_container_window_raise(xembed->inst->con, xembed->win.base, 
E_LAYER_ABOVE);
+   if (xembed->inst->gcc->gadcon->shelf)
+     {
+        E_Shelf *es = xembed->inst->gcc->gadcon->shelf;
+
+        if (es->popup)
+          {
+             if (es->layer)
+               e_container_window_raise(xembed->inst->con, xembed->win.base, 
E_LAYER_ABOVE);
+             else
+               e_container_window_raise(xembed->inst->con, xembed->win.base, 
E_LAYER_BELOW);
+          }
+        else
+          e_container_window_raise(xembed->inst->con, xembed->win.base, 
E_LAYER_DESKTOP);
+     }
+   else
+     e_container_window_raise(xembed->inst->con, xembed->win.base, 
E_LAYER_DESKTOP);
    return EINA_TRUE;
 }
 

-- 


Reply via email to