Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: snaps.c Log Message: Fix bug in creation of new saved settings item. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/snaps.c,v retrieving revision 1.99 retrieving revision 1.100 diff -u -3 -r1.99 -r1.100 --- snaps.c 10 Oct 2005 19:40:11 -0000 1.99 +++ snaps.c 23 Oct 2005 14:25:03 -0000 1.100 @@ -217,7 +217,21 @@ if (sn) return sn; - /* Fix me - put back the old window ID string */ + if ((match_flags & SNAP_MATCH_TITLE) && !ewin->icccm.wm_name) + match_flags ^= SNAP_MATCH_TITLE; + if ((match_flags & SNAP_MATCH_NAME) && !ewin->icccm.wm_res_name) + match_flags ^= SNAP_MATCH_NAME; + if ((match_flags & SNAP_MATCH_CLASS) && !ewin->icccm.wm_res_class) + match_flags ^= SNAP_MATCH_CLASS; + if ((match_flags & SNAP_MATCH_ROLE) && !ewin->icccm.wm_role) + match_flags ^= SNAP_MATCH_ROLE; + if (match_flags == 0) + { + if (!ewin->icccm.wm_name) + return NULL; + match_flags = SNAP_MATCH_TITLE; + } + sn = SnapshotCreate(NULL); if (!sn) return NULL; @@ -1164,6 +1178,7 @@ for (j = 0; j < sn->num_groups; j++) fprintf(f, "GROUP: %i\n", sn->groups[j]); } + fprintf(f, "\n"); } Efree(lst); } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs