Enlightenment CVS committal

Author  : dj2
Project : misc
Module  : engage

Dir     : misc/engage/src


Modified Files:
        wm.c 


Log Message:
- make this compile again. I'm not sure if this is the right fix or not but
  it does compile again. (use the api instead of accessing the struct
  directly)

===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/wm.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- wm.c        10 Jun 2005 19:55:04 -0000      1.25
+++ wm.c        23 Jul 2005 04:09:55 -0000      1.26
@@ -125,6 +125,7 @@
 {
   Evas_List      *l = NULL;
   Evas_List      *tmp = NULL;
+  Evas_List      *last = NULL;
   OD_Window      *win = NULL;
   OD_Window      *result = NULL;
   OD_Window      *current = NULL;
@@ -150,8 +151,12 @@
         result = l->prev->data;
       }
     }
-    if (!result && tmp && tmp->last)
-      result = tmp->last->data;
+
+    if (tmp) {
+      last = evas_list_last(tmp);
+      if (!result && last)
+        result = last->data;
+    }
     evas_list_free(tmp);
   } else {
     for (l = clients; l; l = l->next) {




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to