Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_manager.c 


Log Message:


itray is now a little better in terms of behaving itself.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_manager.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- e_manager.c 31 Jan 2006 12:06:47 -0000      1.48
+++ e_manager.c 1 Feb 2006 13:07:21 -0000       1.49
@@ -139,7 +139,15 @@
    if (windows)
      {
        int i;
-
+        Ecore_X_Atom atom_xmbed, atom_kde_netwm_systray, atom_kwm_dockwindow,
+         atom_window;
+       unsigned char *data = NULL;
+       int count;
+       
+       atom_window = ecore_x_atom_get("WINDOW");
+       atom_xmbed = ecore_x_atom_get("_XEMBED_INFO");
+       atom_kde_netwm_systray = 
ecore_x_atom_get("_KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR");
+       atom_kwm_dockwindow = ecore_x_atom_get("KWM_DOCKWINDOW");
        for (i = 0; i < wnum; i++)
          {
             Ecore_X_Window_Attributes att;
@@ -147,6 +155,33 @@
             int ret;
 
             ecore_x_window_attributes_get(windows[i], &att);
+            if (!ecore_x_window_prop_property_get(windows[i],
+                                                  atom_xmbed,
+                                                  atom_xmbed, 32,
+                                                  &data, &count))
+              data = NULL;
+            if (!data)
+              {
+                 if (!ecore_x_window_prop_property_get(windows[i],
+                                                       atom_kde_netwm_systray,
+                                                       atom_xmbed, 32,
+                                                       &data, &count))
+                   data = NULL;
+              }
+            if (!data)
+              {
+                 if (!ecore_x_window_prop_property_get(windows[i],
+                                                       atom_kwm_dockwindow,
+                                                       atom_kwm_dockwindow, 32,
+                                                       &data, &count))
+                   data = NULL;
+              }
+            if (data)
+              {
+                 continue;
+                 free(data);
+                 data = NULL;
+              }
             ret = ecore_x_window_prop_card32_get(windows[i],
                                                  E_ATOM_MANAGED,
                                                  &ret_val, 1);




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to